ieisystem / ieisystem.inmanage / 1.1.1 / module / edit_dns Set dns information | "added in version" 1.0.0 of ieisystem.inmanage" Authors: WangBaoshan (@ieisystem)ieisystem.inmanage.edit_dns (1.1.1) — module
Install with ansible-galaxy collection install ieisystem.inmanage:==1.1.1
collections: - name: ieisystem.inmanage version: 1.1.1
Set dns information on ieisystem Server.
- name: DNS test hosts: inmanage connection: local gather_facts: no vars: inmanage: host: "{{ ansible_ssh_host }}" username: "{{ username }}" password: "{{ password }}" tasks: - name: "Set dns information" ieisystem.inmanage.edit_dns: dns_status: "disable" provider: "{{ inmanage }}" - name: "Set dns information" ieisystem.inmanage.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: "{{ inmanage }}" - name: "Set dns information" ieisystem.inmanage.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: "{{ inmanage }}"
host: description: - Specifies the DNS host name or address for connecting to the remote device over the specified transport. The value of host is used as the destination address for the transport. type: str host_cfg: choices: - manual - auto description: - Host Settings. Select whether the host name will be configured manually or automatically. type: str password: description: - Specifies the password to use to authenticate the connection to the remote device. If the value is not specified in the task, the value of environment variable C(ANSIBLE_NET_PASSWORD) will be used instead. type: str provider: description: - A dict object containing connection details. suboptions: host: description: - Specifies the DNS host name or address for connecting to the remote device over the specified transport. The value of host is used as the destination address for the transport. type: str password: description: - Specifies the password to use to authenticate the connection to the remote device. If the value is not specified in the task, the value of environment variable C(ANSIBLE_NET_PASSWORD) will be used instead. type: str username: description: - Configures the username to use to authenticate the connection to the remote device. If the value is not specified in the task, the value of environment variable C(ANSIBLE_NET_USERNAME) will be used instead. type: str type: dict username: description: - Configures the username to use to authenticate the connection to the remote device. If the value is not specified in the task, the value of environment variable C(ANSIBLE_NET_USERNAME) will be used instead. type: str dns_iface: description: - DNS Interface, input like 'eth0', 'eth1', 'bond0'. - Required when I(dns_manual=auto). type: str host_name: description: - Host Name. - Required when I(host_cfg=manual). type: str dns_manual: choices: - manual - auto description: - DNS Settings. Select whether the DNS interface will be configured manually or automatically. type: str dns_status: choices: - enable - disable description: - DNS status. type: str dns_server1: description: - DNS Server1 IPv4 or IPv6 address. - Required when I(dns_manual=manual). type: str dns_server2: description: - DNS Server2 IPv4 or IPv6 address. - Required when I(dns_manual=manual). type: str dns_server3: description: - DNS Server3 IPv4 or IPv6 address. - Required when I(dns_manual=manual). type: str domain_name: description: - Domain Name. - Required when I(domain_manual=manual). type: str dns_priority: choices: - '4' - '6' description: - IP Priority. - Required when I(dns_manual=auto). type: str domain_iface: description: - Network Interface, input like 'eth0_v4', 'eth0_v6', 'eth1_v4', 'eth1_v6', 'bond0_v4', 'bond0_v6'. - Required when I(domain_manual=auto). type: str domain_manual: choices: - manual - auto description: - Domain Settings. Select whether the domain interface will be configured manually or automatically. type: str register_status1: choices: - enable - disable description: - BMC register status 1. - Only the M6 model supports this parameter. type: str register_status2: choices: - enable - disable description: - BMC register status 2. - Only the M6 model supports this parameter. type: str registration_method1: choices: - nsupdate - dhcp - hostname description: - Registration method 1. - Only the M6 model supports this parameter. - Required when I(register_status1=enable). type: str registration_method2: choices: - nsupdate - dhcp - hostname description: - Registration method 2. - Only the M6 model supports this parameter. - Required when I(register_status2=enable). type: str
changed: description: Check to see if a change was made on the device. returned: always type: bool message: description: Messages returned after module execution. returned: always type: str state: description: Status after module execution. returned: always type: str