Debian Codegraph @

ansible_collections/cisco/nxos/docs/cisco.nxos.nxos_aaa_server_host_module.rst

raw
1 .. _cisco.nxos.nxos_aaa_server_host_module:
2
3
4 *******************************
5 cisco.nxos.nxos_aaa_server_host
6 *******************************
7
8 **Manages AAA server host-specific configuration.**
9
10
11 Version added: 1.0.0
12
13 .. contents::
14 :local:
15 :depth: 1
16
17
18 Synopsis
19 --------
20 - Manages AAA server host-specific configuration.
21
22
23
24
25 Parameters
26 ----------
27
28 .. raw:: html
29
30 <table border=0 cellpadding=0 class="documentation-table">
31 <tr>
32 <th colspan="1">Parameter</th>
33 <th>Choices/<font color="blue">Defaults</font></th>
34 <th width="100%">Comments</th>
35 </tr>
36 <tr>
37 <td colspan="1">
38 <div class="ansibleOptionAnchor" id="parameter-"></div>
39 <b>acct_port</b>
40 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
41 <div style="font-size: small">
42 <span style="color: purple">string</span>
43 </div>
44 </td>
45 <td>
46 </td>
47 <td>
48 <div>Alternate UDP port for RADIUS accounting or keyword &#x27;default&#x27;.</div>
49 </td>
50 </tr>
51 <tr>
52 <td colspan="1">
53 <div class="ansibleOptionAnchor" id="parameter-"></div>
54 <b>address</b>
55 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
56 <div style="font-size: small">
57 <span style="color: purple">string</span>
58 / <span style="color: red">required</span>
59 </div>
60 </td>
61 <td>
62 </td>
63 <td>
64 <div>Address or name of the radius or tacacs host.</div>
65 </td>
66 </tr>
67 <tr>
68 <td colspan="1">
69 <div class="ansibleOptionAnchor" id="parameter-"></div>
70 <b>auth_port</b>
71 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
72 <div style="font-size: small">
73 <span style="color: purple">string</span>
74 </div>
75 </td>
76 <td>
77 </td>
78 <td>
79 <div>Alternate UDP port for RADIUS authentication or keyword &#x27;default&#x27;.</div>
80 </td>
81 </tr>
82 <tr>
83 <td colspan="1">
84 <div class="ansibleOptionAnchor" id="parameter-"></div>
85 <b>encrypt_type</b>
86 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
87 <div style="font-size: small">
88 <span style="color: purple">string</span>
89 </div>
90 </td>
91 <td>
92 <ul style="margin: 0; padding: 0"><b>Choices:</b>
93 <li>0</li>
94 <li>7</li>
95 </ul>
96 </td>
97 <td>
98 <div>The state of encryption applied to the entered key. O for clear text, 7 for encrypted. Type-6 encryption is not supported.</div>
99 </td>
100 </tr>
101 <tr>
102 <td colspan="1">
103 <div class="ansibleOptionAnchor" id="parameter-"></div>
104 <b>host_timeout</b>
105 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
106 <div style="font-size: small">
107 <span style="color: purple">string</span>
108 </div>
109 </td>
110 <td>
111 </td>
112 <td>
113 <div>Timeout period for specified host, in seconds or keyword &#x27;default. Range is 1-60.</div>
114 </td>
115 </tr>
116 <tr>
117 <td colspan="1">
118 <div class="ansibleOptionAnchor" id="parameter-"></div>
119 <b>key</b>
120 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
121 <div style="font-size: small">
122 <span style="color: purple">string</span>
123 </div>
124 </td>
125 <td>
126 </td>
127 <td>
128 <div>Shared secret for the specified host or keyword &#x27;default&#x27;.</div>
129 </td>
130 </tr>
131 <tr>
132 <td colspan="1">
133 <div class="ansibleOptionAnchor" id="parameter-"></div>
134 <b>server_type</b>
135 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
136 <div style="font-size: small">
137 <span style="color: purple">string</span>
138 / <span style="color: red">required</span>
139 </div>
140 </td>
141 <td>
142 <ul style="margin: 0; padding: 0"><b>Choices:</b>
143 <li>radius</li>
144 <li>tacacs</li>
145 </ul>
146 </td>
147 <td>
148 <div>The server type is either radius or tacacs.</div>
149 </td>
150 </tr>
151 <tr>
152 <td colspan="1">
153 <div class="ansibleOptionAnchor" id="parameter-"></div>
154 <b>state</b>
155 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
156 <div style="font-size: small">
157 <span style="color: purple">string</span>
158 </div>
159 </td>
160 <td>
161 <ul style="margin: 0; padding: 0"><b>Choices:</b>
162 <li><div style="color: blue"><b>present</b>&nbsp;&larr;</div></li>
163 <li>absent</li>
164 </ul>
165 </td>
166 <td>
167 <div>Manage the state of the resource.</div>
168 </td>
169 </tr>
170 <tr>
171 <td colspan="1">
172 <div class="ansibleOptionAnchor" id="parameter-"></div>
173 <b>tacacs_port</b>
174 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
175 <div style="font-size: small">
176 <span style="color: purple">string</span>
177 </div>
178 </td>
179 <td>
180 </td>
181 <td>
182 <div>Alternate TCP port TACACS Server or keyword &#x27;default&#x27;.</div>
183 </td>
184 </tr>
185 </table>
186 <br/>
187
188
189 Notes
190 -----
191
192 .. note::
193 - Tested against NXOSv 7.3.(0)D1(1) on VIRL
194 - Limited Support for Cisco MDS
195 - Changes to the host key (shared secret) are not idempotent for type 0.
196 - If ``state=absent`` removes the whole host configuration.
197 - For information on using CLI and NX-API see the :ref:`NXOS Platform Options guide <nxos_platform_options>`
198 - For more information on using Ansible to manage network devices see the :ref:`Ansible Network Guide <network_guide>`
199 - For more information on using Ansible to manage Cisco devices see the `Cisco integration page <https://www.ansible.com/integrations/networks/cisco>`_.
200
201
202
203 Examples
204 --------
205
206 .. code-block:: yaml
207
208 # Radius Server Host Basic settings
209 - name: Radius Server Host Basic settings
210 cisco.nxos.nxos_aaa_server_host:
211 state: present
212 server_type: radius
213 address: 1.2.3.4
214 acct_port: 2084
215 host_timeout: 10
216
217 # Radius Server Host Key Configuration
218 - name: Radius Server Host Key Configuration
219 cisco.nxos.nxos_aaa_server_host:
220 state: present
221 server_type: radius
222 address: 1.2.3.4
223 key: hello
224 encrypt_type: 7
225
226 # TACACS Server Host Configuration
227 - name: Tacacs Server Host Configuration
228 cisco.nxos.nxos_aaa_server_host:
229 state: present
230 server_type: tacacs
231 tacacs_port: 89
232 host_timeout: 10
233 address: 5.6.7.8
234
235
236
237 Return Values
238 -------------
239 Common return values are documented `here <https://docs.ansible.com/ansible/latest/reference_appendices/common_return_values.html#common-return-values>`_, the following are the fields unique to this module:
240
241 .. raw:: html
242
243 <table border=0 cellpadding=0 class="documentation-table">
244 <tr>
245 <th colspan="1">Key</th>
246 <th>Returned</th>
247 <th width="100%">Description</th>
248 </tr>
249 <tr>
250 <td colspan="1">
251 <div class="ansibleOptionAnchor" id="return-"></div>
252 <b>changed</b>
253 <a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a>
254 <div style="font-size: small">
255 <span style="color: purple">boolean</span>
256 </div>
257 </td>
258 <td>always</td>
259 <td>
260 <div>check to see if a change was made on the device</div>
261 <br/>
262 <div style="font-size: smaller"><b>Sample:</b></div>
263 <div style="font-size: smaller; color: blue; word-wrap: break-word; word-break: break-all;">True</div>
264 </td>
265 </tr>
266 <tr>
267 <td colspan="1">
268 <div class="ansibleOptionAnchor" id="return-"></div>
269 <b>end_state</b>
270 <a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a>
271 <div style="font-size: small">
272 <span style="color: purple">dictionary</span>
273 </div>
274 </td>
275 <td>always</td>
276 <td>
277 <div>k/v pairs of configuration after module execution</div>
278 <br/>
279 <div style="font-size: smaller"><b>Sample:</b></div>
280 <div style="font-size: smaller; color: blue; word-wrap: break-word; word-break: break-all;">{&#x27;address&#x27;: &#x27;1.2.3.4&#x27;, &#x27;auth_port&#x27;: &#x27;2084&#x27;, &#x27;host_timeout&#x27;: &#x27;10&#x27;, &#x27;server_type&#x27;: &#x27;radius&#x27;}</div>
281 </td>
282 </tr>
283 <tr>
284 <td colspan="1">
285 <div class="ansibleOptionAnchor" id="return-"></div>
286 <b>existing</b>
287 <a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a>
288 <div style="font-size: small">
289 <span style="color: purple">dictionary</span>
290 </div>
291 </td>
292 <td>always</td>
293 <td>
294 <div>k/v pairs of existing configuration</div>
295 <br/>
296 </td>
297 </tr>
298 <tr>
299 <td colspan="1">
300 <div class="ansibleOptionAnchor" id="return-"></div>
301 <b>proposed</b>
302 <a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a>
303 <div style="font-size: small">
304 <span style="color: purple">dictionary</span>
305 </div>
306 </td>
307 <td>always</td>
308 <td>
309 <div>k/v pairs of parameters passed into module</div>
310 <br/>
311 <div style="font-size: smaller"><b>Sample:</b></div>
312 <div style="font-size: smaller; color: blue; word-wrap: break-word; word-break: break-all;">{&#x27;address&#x27;: &#x27;1.2.3.4&#x27;, &#x27;auth_port&#x27;: &#x27;2084&#x27;, &#x27;host_timeout&#x27;: &#x27;10&#x27;, &#x27;server_type&#x27;: &#x27;radius&#x27;}</div>
313 </td>
314 </tr>
315 <tr>
316 <td colspan="1">
317 <div class="ansibleOptionAnchor" id="return-"></div>
318 <b>updates</b>
319 <a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a>
320 <div style="font-size: small">
321 <span style="color: purple">list</span>
322 </div>
323 </td>
324 <td>always</td>
325 <td>
326 <div>command sent to the device</div>
327 <br/>
328 <div style="font-size: smaller"><b>Sample:</b></div>
329 <div style="font-size: smaller; color: blue; word-wrap: break-word; word-break: break-all;">[&#x27;radius-server host 1.2.3.4 auth-port 2084 timeout 10&#x27;]</div>
330 </td>
331 </tr>
332 </table>
333 <br/><br/>
334
335
336 Status
337 ------
338
339
340 Authors
341 ~~~~~~~
342
343 - Jason Edelman (@jedelman8)