mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 22:02:50 +00:00
Renames the bigip_configsync_actions module (#29747)
Retains the old name by making a symlink. We can remove it in a later release.
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
---
|
||||
|
||||
device_group: "sdbt_sync_failover_dev_group"
|
||||
@@ -0,0 +1,16 @@
|
||||
---
|
||||
|
||||
# In this task list, the 0th item is the Active unit and the 1st item is the
|
||||
# standby unit.
|
||||
|
||||
- include: setup.yaml
|
||||
when: ansible_play_batch[0] == inventory_hostname
|
||||
|
||||
- include: test-device-to-group.yaml
|
||||
when: ansible_play_batch[0] == inventory_hostname
|
||||
|
||||
- include: test-pull-recent-device.yaml
|
||||
when: ansible_play_batch[1] == inventory_hostname
|
||||
|
||||
- include: teardown.yaml
|
||||
when: ansible_play_batch[0] == inventory_hostname
|
||||
@@ -0,0 +1,13 @@
|
||||
---
|
||||
|
||||
- name: Create pool
|
||||
bigip_pool:
|
||||
lb_method: "round-robin"
|
||||
name: "cs1.pool"
|
||||
state: "present"
|
||||
register: result
|
||||
|
||||
- name: Assert Create pool
|
||||
assert:
|
||||
that:
|
||||
- result|changed
|
||||
@@ -0,0 +1,21 @@
|
||||
---
|
||||
|
||||
- name: Delete pool - First device
|
||||
bigip_pool:
|
||||
name: "{{ item }}"
|
||||
state: "absent"
|
||||
with_items:
|
||||
- "cs1.pool"
|
||||
- "cs2.pool"
|
||||
register: result
|
||||
|
||||
- name: Assert Delete pool
|
||||
assert:
|
||||
that:
|
||||
- result|changed
|
||||
|
||||
- name: Sync configuration from device to group
|
||||
bigip_configsync_actions:
|
||||
device_group: "{{ device_group }}"
|
||||
sync_device_to_group: yes
|
||||
register: result
|
||||
@@ -0,0 +1,23 @@
|
||||
---
|
||||
|
||||
- name: Sync configuration from device to group
|
||||
bigip_configsync_actions:
|
||||
device_group: "{{ device_group }}"
|
||||
sync_device_to_group: yes
|
||||
register: result
|
||||
|
||||
- name: Sync configuration from device to group
|
||||
assert:
|
||||
that:
|
||||
- result|changed
|
||||
|
||||
- name: Sync configuration from device to group - Idempotent check
|
||||
bigip_configsync_actions:
|
||||
device_group: "{{ device_group }}"
|
||||
sync_device_to_group: yes
|
||||
register: result
|
||||
|
||||
- name: Sync configuration from device to group - Idempotent check
|
||||
assert:
|
||||
that:
|
||||
- not result|changed
|
||||
@@ -0,0 +1,48 @@
|
||||
---
|
||||
|
||||
- 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
|
||||
Reference in New Issue
Block a user