mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 21:32:49 +00:00
meraki_device - Support for creating and modifying device notes (#51100)
* Add support for notes * Add test for notes * Device notes changes - Renamed from notes to note - Modified tests to work * Comment device test since it only works once * Remove assertion stanza and move assertion to existing one * Add version_added to note documentation * Converted from tabs to spaces * Added changelog fragment * Remove changelog file since it's a feature * Add changelog fragment
This commit is contained in:
@@ -1,17 +1,17 @@
|
||||
---
|
||||
- block:
|
||||
- name: Claim a device into an organization
|
||||
meraki_device:
|
||||
auth_key: '{{auth_key}}'
|
||||
org_name: '{{test_org_name}}'
|
||||
serial: '{{serial}}'
|
||||
state: present
|
||||
delegate_to: localhost
|
||||
register: claim_device_org
|
||||
# - name: Claim a device into an organization
|
||||
# meraki_device:
|
||||
# auth_key: '{{auth_key}}'
|
||||
# org_name: '{{test_org_name}}'
|
||||
# serial: '{{serial}}'
|
||||
# state: present
|
||||
# delegate_to: localhost
|
||||
# register: claim_device_org
|
||||
|
||||
- assert:
|
||||
that:
|
||||
- claim_device_org.changed == true
|
||||
# - assert:
|
||||
# that:
|
||||
# - claim_device_org.changed == true
|
||||
|
||||
- name: Query status of all devices in an organization
|
||||
meraki_device:
|
||||
@@ -160,16 +160,15 @@
|
||||
tags: recently-added
|
||||
state: present
|
||||
move_map_marker: True
|
||||
note: Test device notes
|
||||
delegate_to: localhost
|
||||
register: update_device
|
||||
|
||||
- debug:
|
||||
msg: '{{update_device}}'
|
||||
|
||||
# - assert:
|
||||
# that:
|
||||
# - update_device.changed == true
|
||||
# - '"1060 W. Addison St., Chicago, IL" in update_device.data.0.address'
|
||||
- assert:
|
||||
that:
|
||||
- update_device.changed == true
|
||||
- update_device.data.0.notes == "Test device notes"
|
||||
- '"1060 W. Addison St., Chicago, IL" in update_device.data.0.address'
|
||||
|
||||
- name: Update a device with idempotency
|
||||
meraki_device:
|
||||
|
||||
Reference in New Issue
Block a user