W3cubDocs

/Ansible

bigip_gtm_datacenter - Manage Datacenter configuration in BIG-IP

New in version 2.2.

Synopsis

Manage BIG-IP data center configuration. A data center defines the location where the physical network components reside, such as the server and link objects that share the same subnet on the network. This module is able to manipulate the data center definitions in a BIG-IP

Requirements (on host that executes module)

  • f5-sdk

Options

parameter required default choices comments
contact
no
The name of the contact for the data center.
description
no
The description of the data center.
enabled
no
  • True
  • False
Whether the data center should be enabled. At least one of state and enabled are required.
location
no
The location of the data center.
name
yes
The name of the data center.
password
yes
The password for the user account used to connect to the BIG-IP.
server
yes
The BIG-IP host.
server_port
(added in 2.2)
no 443
The BIG-IP server port.
state
no
  • present
  • absent
The state of the datacenter on the BIG-IP. When present, guarantees that the data center exists. When absent removes the data center from the BIG-IP. enabled will enable the data center and disabled will ensure the data center is disabled. At least one of state and enabled are required.
user
yes
The username to connect to the BIG-IP with. This user must have administrative privileges on the device.
validate_certs
(added in 2.0)
no True
  • True
  • False
If no, SSL certificates will not be validated. This should only be used on personally controlled sites using self-signed certificates.

Examples

- name: Create data center "New York"
  bigip_gtm_datacenter:
      server: "big-ip"
      name: "New York"
      location: "222 West 23rd"
  delegate_to: localhost

Return Values

Common return values are documented here Common Return Values, the following are the fields unique to this module:

name description returned type sample
location The location that is set for the datacenter changed string 222 West 23rd
contact The contact that was set on the datacenter changed string [email protected]
enabled Whether the datacenter is enabled or not changed bool True
description The description that was set for the datacenter changed string Datacenter in NYC
name Name of the datacenter being manipulated changed string foo

Notes

Note

Requires the f5-sdk Python package on the host. This is as easy as pip install f5-sdk.

This is an Extras Module

For more information on what this means please read Extras Modules

For help in developing on modules, should you be so inclined, please read Community Information & Contributing, developing_test_pr and Developing Modules.

© 2012–2016 Michael DeHaan
© 2016 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/ansible/bigip_gtm_datacenter_module.html