mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-10-22 03:53:59 -07:00
Adds module which allows users to manage partitions on a BIG-IP (#30577)
This commit is contained in:
parent
f8230d961d
commit
0eb0d96286
9 changed files with 621 additions and 124 deletions
|
@ -1,3 +0,0 @@
|
|||
---
|
||||
|
||||
device_group: "sdbt_sync_failover_dev_group"
|
|
@ -1,16 +0,0 @@
|
|||
---
|
||||
|
||||
# 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
|
|
@ -1,13 +0,0 @@
|
|||
---
|
||||
|
||||
- name: Create pool
|
||||
bigip_pool:
|
||||
lb_method: "round-robin"
|
||||
name: "cs1.pool"
|
||||
state: "present"
|
||||
register: result
|
||||
|
||||
- name: Assert Create pool
|
||||
assert:
|
||||
that:
|
||||
- result|changed
|
|
@ -1,21 +0,0 @@
|
|||
---
|
||||
|
||||
- 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
|
|
@ -1,23 +0,0 @@
|
|||
---
|
||||
|
||||
- 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
|
|
@ -1,48 +0,0 @@
|
|||
---
|
||||
|
||||
- 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
|
Loading…
Add table
Add a link
Reference in a new issue