From 38b7c80217c4e72b1d8988eb1e60bb6e77334114 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Thu, 18 Apr 2024 07:52:22 +0200 Subject: Adding upstream version 9.4.0+dfsg. Signed-off-by: Daniel Baumann --- .../cisco/meraki/playbooks/mv_playbook.yml | 63 ++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 ansible_collections/cisco/meraki/playbooks/mv_playbook.yml (limited to 'ansible_collections/cisco/meraki/playbooks/mv_playbook.yml') diff --git a/ansible_collections/cisco/meraki/playbooks/mv_playbook.yml b/ansible_collections/cisco/meraki/playbooks/mv_playbook.yml new file mode 100644 index 000000000..78d8c07ba --- /dev/null +++ b/ansible_collections/cisco/meraki/playbooks/mv_playbook.yml @@ -0,0 +1,63 @@ +--- + +- hosts: localhost + vars: + serial_number: QBSD-8VXX-6QXX + network_id: L_828099381482770866 # Site-2 + gather_facts: false + tasks: + + - name: Update Camera name + cisco.meraki.devices: + serial: "{{ serial_number }}" + name: My Camera + + - name: Update Camera video settings + cisco.meraki.devices_camera_video_settings: + serial: "{{ serial_number }}" + externalRtspEnabled: true + + - name: Create a primary wireless profile + cisco.meraki.networks_camera_wireless_profiles: + networkId: "{{ network_id }}" + name: wireless profile A + ssid: + name: cameras ssid + authMode: psk + encryptionMode: wpa + psk: SuperSecretPreSharedKey + register: primary_profile + + - name: Create a secondary wireless profile + cisco.meraki.networks_camera_wireless_profiles: + networkId: "{{ network_id }}" + name: wireless profile B + ssid: + name: cameras ssid 2 + authMode: psk + encryptionMode: wpa + psk: SuperSecretPreSharedKey + register: secondary_profile + + - name: Associate the camera with the wireless profile + cisco.meraki.devices_camera_wireless_profiles: + serial: "{{ serial_number }}" + ids: + primary: "{{ primary_profile['meraki_response']['id'] }}" + secondary: "{{ secondary_profile['meraki_response']['id'] }}" + + - name: Update quality and retention settings + cisco.meraki.devices_camera_quality_and_retention: + serial: "{{ serial_number }}" + audioRecordingEnabled: true + motionBasedRetentionEnabled: true + motionDetectorVersion: 2 + quality: High + resolution: 1920x1080 + restrictedBandwidthModeEnabled: false + + # - name: Generate a snapshop + # cisco.meraki.devices_camera_generate_snapshot: + # serial: "{{ serial_number }}" + # fullframe: false + # timestamp: '2023-08-08T15:18:08Z' \ No newline at end of file -- cgit v1.2.3