kaytus.ksmanage.edit_dns – Set dns information¶
Note
This plugin is part of the kaytus.ksmanage collection.
To install it use: ansible-galaxy collection install kaytus.ksmanage
.
To use it in a playbook, specify: kaytus.ksmanage.edit_dns
.
New in version 1.0.0: of kaytus.ksmanage
Requirements¶
The below requirements are needed on the host that executes this module.
Python 3.7+
inManage
Parameters¶
Examples¶
- name: DNS test
hosts: ksmanage
connection: local
gather_facts: no
vars:
ksmanage:
host: "{{ ansible_ssh_host }}"
username: "{{ username }}"
password: "{{ password }}"
tasks:
- name: "Set dns information"
kaytus.ksmanage.edit_dns:
dns_status: "disable"
provider: "{{ ksmanage }}"
- name: "Set dns information"
kaytus.ksmanage.edit_dns:
dns_status: "enable"
host_cfg: "manual"
host_name: "123456789"
domain_manual: "auto"
domain_iface: "eth0_v4"
dns_manual: "manual"
dns_server1: "100.2.2.2"
dns_server2: "100.2.2.3"
dns_server3: "100.2.2.4"
provider: "{{ ksmanage }}"
- name: "Set dns information"
kaytus.ksmanage.edit_dns:
dns_status: "enable"
host_cfg: "manual"
host_name: "123456789"
domain_manual: "manual"
domain_name: "test.com"
dns_manual: "auto"
dns_iface: "eth0"
dns_priority: "4"
provider: "{{ ksmanage }}"
Return Values¶
Common return values are documented here, the following are the fields unique to this module:
Authors¶
WangBaoshan (@ieisystem)