diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-18 05:52:22 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-18 05:52:22 +0000 |
commit | 38b7c80217c4e72b1d8988eb1e60bb6e77334114 (patch) | |
tree | 356e9fd3762877d07cde52d21e77070aeff7e789 /ansible_collections/cisco/meraki/playbooks/mv_playbook.yml | |
parent | Adding upstream version 7.7.0+dfsg. (diff) | |
download | ansible-38b7c80217c4e72b1d8988eb1e60bb6e77334114.tar.xz ansible-38b7c80217c4e72b1d8988eb1e60bb6e77334114.zip |
Adding upstream version 9.4.0+dfsg.upstream/9.4.0+dfsg
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'ansible_collections/cisco/meraki/playbooks/mv_playbook.yml')
-rw-r--r-- | ansible_collections/cisco/meraki/playbooks/mv_playbook.yml | 63 |
1 files changed, 63 insertions, 0 deletions
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 |