ansible / ansible.builtin / v2.3.3.0-1 / module / nxos_aaa_server_host Manages AAA server host-specific configuration. | "added in version" 2.2 of ansible.builtin" Authors: Jason Edelman (@jedelman8) preview | supported by communityansible.builtin.nxos_aaa_server_host (v2.3.3.0-1) — module
pip
Install with pip install ansible==2.3.3.0.post1
Manages AAA server host-specific configuration.
# Radius Server Host Basic settings - name: "Radius Server Host Basic settings" nxos_aaa_server_host: state: present server_type: radius address: 1.2.3.4 acct_port: 2084 host_timeout: 10 host: "{{ inventory_hostname }}" username: "{{ un }}" password: "{{ pwd }}"
# Radius Server Host Key Configuration - name: "Radius Server Host Key Configuration" nxos_aaa_server_host: state: present server_type: radius address: 1.2.3.4 key: hello encrypt_type: 7 host: inventory_hostname }} username: "{{ un }}" password: "{{ pwd }}"
# TACACS Server Host Configuration - name: "Tacacs Server Host Configuration" nxos_aaa_server_host: state: present server_type: tacacs tacacs_port: 89 host_timeout: 10 address: 5.6.7.8 host: inventory_hostname }} username: un }} password: pwd }}
key: default: null description: - Shared secret for the specified host. required: false state: choices: - present - absent default: present description: - Manage the state of the resource. required: false address: description: - Address or name of the radius or tacacs host. required: true acct_port: default: null description: - Alternate UDP port for RADIUS accounting. required: false auth_port: default: null description: - Alternate UDP port for RADIUS authentication. required: false server_type: choices: - radius - tacacs description: - The server type is either radius or tacacs. required: true tacacs_port: default: null description: - Alternate TCP port TACACS Server. required: false encrypt_type: choices: - '0' - '7' default: null description: - The state of encryption applied to the entered key. O for clear text, 7 for encrypted. Type-6 encryption is not supported. required: false host_timeout: default: null description: - Timeout period for specified host, in seconds. Range is 1-60. required: false
changed: description: check to see if a change was made on the device returned: always sample: true type: boolean end_state: description: k/v pairs of configuration after module execution returned: always sample: address: 1.2.3.4 auth_port: '2084' host_timeout: '10' server_type: radius type: dict existing: description: - k/v pairs of existing configuration returned: always sample: {} type: dict proposed: description: k/v pairs of parameters passed into module returned: always sample: address: 1.2.3.4 auth_port: '2084' host_timeout: '10' server_type: radius type: dict updates: description: command sent to the device returned: always sample: - radius-server host 1.2.3.4 auth-port 2084 timeout 10 type: list