summaryrefslogtreecommitdiffstats
path: root/ansible_collections/cisco/meraki/playbooks/mv_playbook.yml
diff options
context:
space:
mode:
Diffstat (limited to 'ansible_collections/cisco/meraki/playbooks/mv_playbook.yml')
-rw-r--r--ansible_collections/cisco/meraki/playbooks/mv_playbook.yml63
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