f5networks.f5_modules.bigip_device_ha_group module – Manage HA group settings on a BIG-IP system
Note
This module is part of the f5networks.f5_modules collection (version 1.21.0).
You might already have this collection installed if you are using the ansible
package.
It is not included in ansible-core
.
To check whether it is installed, run ansible-galaxy collection list
.
To install it, use: ansible-galaxy collection install f5networks.f5_modules
.
To use it in a playbook, specify: f5networks.f5_modules.bigip_device_ha_group
.
New in f5networks.f5_modules 1.0.0
Synopsis
Manage HA (High Availability) group settings on a BIG-IP system.
Parameters
Parameter |
Comments |
---|---|
Specifies the extra value to be added to the HA score of the active unit. When system creates HA group this value is set to |
|
User created HA group description. |
|
When set to Choices:
|
|
Name of the HA group to create/manage. |
|
Specifies pools to contribute to the HA score. The pools must exist on the BIG-IP, otherwise the operation will fail. |
|
The pool attribute that contributes to the HA score. Choices:
|
|
Below this value, the selected pool attribute contributes nothing to the HA score. This value must be greater than the number of pool members present in the pool. In TMOS versions 12.x this attribute is named Specifying this attribute in the module running against v12.x will keep the same behavior as if |
|
Device partition where the specified pool exists. This parameter is ignored if the Default: |
|
The pool name which is used to contribute to the HA score. Referencing the pool can be done in the full path format for example, When the pool is referenced in full path format, the |
|
Maximum value the selected pool attribute contributes to the HA score. |
|
A dict object containing connection details. |
|
Configures the auth provider for to obtain authentication tokens from the remote device. This option is really used when working with BIG-IQ devices. |
|
If You may omit this option by setting the environment variable Previously used variable Choices:
|
|
The password for the user account used to connect to the BIG-IP. You may omit this option by setting the environment variable |
|
The BIG-IP host. You may omit this option by setting the environment variable |
|
The BIG-IP server port. You may omit this option by setting the environment variable Default: |
|
Specifies the timeout in seconds for communicating with the network device for either connecting or sending commands. If the timeout is exceeded before the operation is completed, the module will error. |
|
Configures the transport connection to use when connecting to the remote device. Choices:
|
|
The username to connect to the BIG-IP with. This user must have administrative privileges on the device. You may omit this option by setting the environment variable |
|
If You may omit this option by setting the environment variable Choices:
|
|
When When Choices:
|
|
Specifies trunks to contribute to the HA score. The trunks must exist on the BIG-IP, otherwise the operation will fail. |
|
The trunk attribute that contributes to the HA score. Choices:
|
|
Below this value the selected trunk attribute contributes nothing to the HA score. This value must be greater than the number of trunk members. In TMOS versions 12.x this attribute is named Specifying this attribute in the module running against v12.x will keep the same behavior as if |
|
The trunk name used to contribute to the HA score. |
|
Maximum value the selected trunk attribute contributes to the HA score. |
Notes
Note
This module does not support atomic removal of HA group objects.
For more information on using Ansible to manage F5 Networks devices see https://www.ansible.com/integrations/networks/f5.
Requires BIG-IP software version >= 12.
The F5 modules only manipulate the running configuration of the F5 product. To ensure that BIG-IP specific configuration persists to disk, be sure to include at least one task that uses the f5networks.f5_modules.bigip_config module to save the running configuration. Refer to the module’s documentation for the correct usage of the module to save your running configuration.
Examples
- name: Create HA group no members, not active
bigip_device_ha_group:
name: foo_ha
description: empty_foo
active_bonus: 20
enable: no
provider:
password: secret
server: lb.mydomain.com
user: admin
delegate_to: localhost
- name: Create HA group with pools and trunks
bigip_device_ha_group:
name: baz_ha
description: non_empty_baz
active_bonus: 15
pools:
- pool_name: foopool
weight: 30
minimum_threshold: 1
trunks:
- trunk_name: footrunk
weight: 70
minimum_threshold: 2
provider:
password: secret
server: lb.mydomain.com
user: admin
delegate_to: localhost
- name: Create HA group pools using full_path format
bigip_device_ha_group:
name: bar_ha
description: non_empty_bar
active_bonus: 12
pools:
- pool_name: /Baz/foopool
weight: 30
minimum_threshold: 1
provider:
password: secret
server: lb.mydomain.com
user: admin
delegate_to: localhost
- name: Remove HA group
bigip_device_ha_group:
name: foo_ha
state: absent
provider:
password: secret
server: lb.mydomain.com
user: admin
delegate_to: localhost
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
---|---|
The extra value to be added to the HA score of the active unit. Returned: changed Sample: |
|
User created HA group description. Returned: changed Sample: |
|
Enables or disables the HA score feature. Returned: changed Sample: |
|
Name of the HA group. Returned: changed Sample: |
|
The pools to contribute to the HA score. Returned: changed Sample: |
|
The pool attribute that contributes to the HA score. Returned: changed Sample: |
|
Below this value the selected pool attribute contributes nothing to the HA score. Returned: changed Sample: |
|
Device partition where the specified pool exists. Returned: changed Sample: |
|
The pool name which is used to contribute to the HA score. Returned: changed Sample: |
|
Maximum value the selected pool attribute contributes to the HA score. Returned: changed Sample: |
|
The trunks to contribute to the HA score. Returned: changed Sample: |
|
The trunk attribute that contributes to the HA score. Returned: changed Sample: |
|
Below this value, the selected trunk attribute contributes nothing to the HA score. Returned: changed Sample: |
|
The trunk name used to contribute to the HA score. Returned: changed Sample: |
|
Maximum value the selected trunk attribute contributes to the HA score. Returned: changed Sample: |