community.general.nios_txt_record – Configure Infoblox NIOS txt records¶
Note
This plugin is part of the community.general collection (version 2.5.1).
To install it use: ansible-galaxy collection install community.general
.
To use it in a playbook, specify: community.general.nios_txt_record
.
Synopsis¶
Adds and/or removes instances of txt record objects from Infoblox NIOS servers. This module manages NIOS
record:txt
objects using the Infoblox WAPI interface over REST.
Requirements¶
The below requirements are needed on the host that executes this module.
infoblox_client
Parameters¶
Notes¶
Note
This module must be run locally, which can be achieved by specifying
connection: local
.Please read the Infoblox Guide for more detailed information on how to use Infoblox with Ansible.
Examples¶
- name: Ensure a text Record Exists
community.general.nios_txt_record:
name: fqdn.txt.record.com
text: mytext
state: present
view: External
provider:
host: "{{ inventory_hostname_short }}"
username: admin
password: admin
- name: Ensure a text Record does not exist
community.general.nios_txt_record:
name: fqdn.txt.record.com
text: mytext
state: absent
view: External
provider:
host: "{{ inventory_hostname_short }}"
username: admin
password: admin
Authors¶
Corey Wanless (@coreywan)