| 1 |
.. _cisco.nxos.nxos_aaa_server_module: |
| 2 |
|
| 3 |
|
| 4 |
************************** |
| 5 |
cisco.nxos.nxos_aaa_server |
| 6 |
************************** |
| 7 |
|
| 8 |
**Manages AAA server global 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 global 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>deadtime</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>Duration for which a non-reachable AAA server is skipped, in minutes or keyword 'default. Range is 1-1440. Device default is 0.</div> |
| 49 |
</td> |
| 50 |
</tr> |
| 51 |
<tr> |
| 52 |
<td colspan="1"> |
| 53 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 54 |
<b>directed_request</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 |
</div> |
| 59 |
</td> |
| 60 |
<td> |
| 61 |
<ul style="margin: 0; padding: 0"><b>Choices:</b> |
| 62 |
<li>enabled</li> |
| 63 |
<li>disabled</li> |
| 64 |
<li>default</li> |
| 65 |
</ul> |
| 66 |
</td> |
| 67 |
<td> |
| 68 |
<div>Enables direct authentication requests to AAA server or keyword 'default' Device default is disabled.</div> |
| 69 |
</td> |
| 70 |
</tr> |
| 71 |
<tr> |
| 72 |
<td colspan="1"> |
| 73 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 74 |
<b>encrypt_type</b> |
| 75 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 76 |
<div style="font-size: small"> |
| 77 |
<span style="color: purple">string</span> |
| 78 |
</div> |
| 79 |
</td> |
| 80 |
<td> |
| 81 |
<ul style="margin: 0; padding: 0"><b>Choices:</b> |
| 82 |
<li>0</li> |
| 83 |
<li>7</li> |
| 84 |
</ul> |
| 85 |
</td> |
| 86 |
<td> |
| 87 |
<div>The state of encryption applied to the entered global key. O clear text, 7 encrypted. Type-6 encryption is not supported.</div> |
| 88 |
</td> |
| 89 |
</tr> |
| 90 |
<tr> |
| 91 |
<td colspan="1"> |
| 92 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 93 |
<b>global_key</b> |
| 94 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 95 |
<div style="font-size: small"> |
| 96 |
<span style="color: purple">string</span> |
| 97 |
</div> |
| 98 |
</td> |
| 99 |
<td> |
| 100 |
</td> |
| 101 |
<td> |
| 102 |
<div>Global AAA shared secret or keyword 'default'.</div> |
| 103 |
</td> |
| 104 |
</tr> |
| 105 |
<tr> |
| 106 |
<td colspan="1"> |
| 107 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 108 |
<b>server_timeout</b> |
| 109 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 110 |
<div style="font-size: small"> |
| 111 |
<span style="color: purple">string</span> |
| 112 |
</div> |
| 113 |
</td> |
| 114 |
<td> |
| 115 |
</td> |
| 116 |
<td> |
| 117 |
<div>Global AAA server timeout period, in seconds or keyword 'default. Range is 1-60. Device default is 5.</div> |
| 118 |
</td> |
| 119 |
</tr> |
| 120 |
<tr> |
| 121 |
<td colspan="1"> |
| 122 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 123 |
<b>server_type</b> |
| 124 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 125 |
<div style="font-size: small"> |
| 126 |
<span style="color: purple">string</span> |
| 127 |
/ <span style="color: red">required</span> |
| 128 |
</div> |
| 129 |
</td> |
| 130 |
<td> |
| 131 |
<ul style="margin: 0; padding: 0"><b>Choices:</b> |
| 132 |
<li>radius</li> |
| 133 |
<li>tacacs</li> |
| 134 |
</ul> |
| 135 |
</td> |
| 136 |
<td> |
| 137 |
<div>The server type is either radius or tacacs.</div> |
| 138 |
</td> |
| 139 |
</tr> |
| 140 |
<tr> |
| 141 |
<td colspan="1"> |
| 142 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 143 |
<b>state</b> |
| 144 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 145 |
<div style="font-size: small"> |
| 146 |
<span style="color: purple">string</span> |
| 147 |
</div> |
| 148 |
</td> |
| 149 |
<td> |
| 150 |
<ul style="margin: 0; padding: 0"><b>Choices:</b> |
| 151 |
<li><div style="color: blue"><b>present</b> ←</div></li> |
| 152 |
<li>default</li> |
| 153 |
</ul> |
| 154 |
</td> |
| 155 |
<td> |
| 156 |
<div>Manage the state of the resource.</div> |
| 157 |
</td> |
| 158 |
</tr> |
| 159 |
</table> |
| 160 |
<br/> |
| 161 |
|
| 162 |
|
| 163 |
Notes |
| 164 |
----- |
| 165 |
|
| 166 |
.. note:: |
| 167 |
- Tested against NXOSv 7.3.(0)D1(1) on VIRL |
| 168 |
- Limited Support for Cisco MDS |
| 169 |
- The server_type parameter is always required. |
| 170 |
- If encrypt_type is not supplied, the global AAA server key will be stored as encrypted (type 7). |
| 171 |
- Changes to the global AAA server key with encrypt_type=0 are not idempotent. |
| 172 |
- state=default will set the supplied parameters to their default values. The parameters that you want to default must also be set to default. If global_key=default, the global key will be removed. |
| 173 |
- For information on using CLI and NX-API see the :ref:`NXOS Platform Options guide <nxos_platform_options>` |
| 174 |
- For more information on using Ansible to manage network devices see the :ref:`Ansible Network Guide <network_guide>` |
| 175 |
- For more information on using Ansible to manage Cisco devices see the `Cisco integration page <https://www.ansible.com/integrations/networks/cisco>`_. |
| 176 |
|
| 177 |
|
| 178 |
|
| 179 |
Examples |
| 180 |
-------- |
| 181 |
|
| 182 |
.. code-block:: yaml |
| 183 |
|
| 184 |
# Radius Server Basic settings |
| 185 |
- name: Radius Server Basic settings |
| 186 |
cisco.nxos.nxos_aaa_server: |
| 187 |
server_type: radius |
| 188 |
server_timeout: 9 |
| 189 |
deadtime: 20 |
| 190 |
directed_request: enabled |
| 191 |
|
| 192 |
# Tacacs Server Basic settings |
| 193 |
- name: Tacacs Server Basic settings |
| 194 |
cisco.nxos.nxos_aaa_server: |
| 195 |
server_type: tacacs |
| 196 |
server_timeout: 8 |
| 197 |
deadtime: 19 |
| 198 |
directed_request: disabled |
| 199 |
|
| 200 |
# Setting Global Key |
| 201 |
- name: AAA Server Global Key |
| 202 |
cisco.nxos.nxos_aaa_server: |
| 203 |
server_type: radius |
| 204 |
global_key: test_key |
| 205 |
|
| 206 |
|
| 207 |
|
| 208 |
Return Values |
| 209 |
------------- |
| 210 |
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: |
| 211 |
|
| 212 |
.. raw:: html |
| 213 |
|
| 214 |
<table border=0 cellpadding=0 class="documentation-table"> |
| 215 |
<tr> |
| 216 |
<th colspan="1">Key</th> |
| 217 |
<th>Returned</th> |
| 218 |
<th width="100%">Description</th> |
| 219 |
</tr> |
| 220 |
<tr> |
| 221 |
<td colspan="1"> |
| 222 |
<div class="ansibleOptionAnchor" id="return-"></div> |
| 223 |
<b>commands</b> |
| 224 |
<a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a> |
| 225 |
<div style="font-size: small"> |
| 226 |
<span style="color: purple">list</span> |
| 227 |
</div> |
| 228 |
</td> |
| 229 |
<td>always</td> |
| 230 |
<td> |
| 231 |
<div>command sent to the device</div> |
| 232 |
<br/> |
| 233 |
<div style="font-size: smaller"><b>Sample:</b></div> |
| 234 |
<div style="font-size: smaller; color: blue; word-wrap: break-word; word-break: break-all;">['radius-server deadtime 22', 'radius-server timeout 11', 'radius-server directed-request']</div> |
| 235 |
</td> |
| 236 |
</tr> |
| 237 |
</table> |
| 238 |
<br/><br/> |
| 239 |
|
| 240 |
|
| 241 |
Status |
| 242 |
------ |
| 243 |
|
| 244 |
|
| 245 |
Authors |
| 246 |
~~~~~~~ |
| 247 |
|
| 248 |
- Jason Edelman (@jedelman8) |