1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00
community.general/test/integration/targets/bigip_configsync_action/tasks/test-pull-recent-device.yaml
Tim Rupp 74ace093b8 Renames the bigip_configsync_actions module (#29747)
Retains the old name by making a symlink. We can remove it in a later
release.
2017-09-12 05:53:44 +01:00

48 lines
1.3 KiB
YAML

---
- name: Create another pool - First device
bigip_pool:
server: "{{ hostvars['bigip1']['ansible_host'] }}"
lb_method: "round_robin"
name: "cs2.pool"
state: "present"
register: result
- name: Assert Create another pool - First device
assert:
that:
- result|changed
- name: Sync configuration from most recent - Second device
bigip_configsync_actions:
device_group: "{{ device_group }}"
sync_most_recent_to_device: yes
register: result
- name: Assert Sync configuration from most recent - Second device
assert:
that:
- result|changed
- name: Sync configuration from most recent - Second device - Idempotent check
bigip_configsync_actions:
device_group: "{{ device_group }}"
sync_most_recent_to_device: yes
register: result
- name: Assert Sync configuration from most recent - Second device - Idempotent check
assert:
that:
- not result|changed
- name: Create another pool again - Second device - ensure it was created in previous sync
bigip_pool:
lb_method: "round_robin"
name: "cs2.pool"
state: "present"
register: result
- name: Assert Create another pool again - Second device - ensure it was deleted in previous sync
assert:
that:
- not result|changed