Debian Codegraph @

ansible_collections/dellemc/enterprise_sonic/docs/dellemc.enterprise_sonic.sonic_aaa_module.rst

raw
1 .. _dellemc.enterprise_sonic.sonic_aaa_module:
2
3
4 **********************************
5 dellemc.enterprise_sonic.sonic_aaa
6 **********************************
7
8 **Manage AAA configuration on SONiC**
9
10
11 Version added: 1.1.0
12
13 .. contents::
14 :local:
15 :depth: 1
16
17
18 Synopsis
19 --------
20 - This module provides configuration management of AAA for devices running SONiC.
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="4">Parameter</th>
33 <th>Choices/<font color="blue">Defaults</font></th>
34 <th width="100%">Comments</th>
35 </tr>
36 <tr>
37 <td colspan="4">
38 <div class="ansibleOptionAnchor" id="parameter-"></div>
39 <b>config</b>
40 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
41 <div style="font-size: small">
42 <span style="color: purple">dictionary</span>
43 </div>
44 </td>
45 <td>
46 </td>
47 <td>
48 <div>AAA configuration</div>
49 <div>For all lists in the module, the list items should be specified in order of desired priority.</div>
50 <div>List items specified first have the highest priority.</div>
51 </td>
52 </tr>
53 <tr>
54 <td class="elbow-placeholder"></td>
55 <td colspan="3">
56 <div class="ansibleOptionAnchor" id="parameter-"></div>
57 <b>accounting</b>
58 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
59 <div style="font-size: small">
60 <span style="color: purple">dictionary</span>
61 </div>
62 <div style="font-style: italic; font-size: small; color: darkgreen">added in 4.0.0</div>
63 </td>
64 <td>
65 </td>
66 <td>
67 <div>AAA accounting configuration.</div>
68 </td>
69 </tr>
70 <tr>
71 <td class="elbow-placeholder"></td>
72 <td class="elbow-placeholder"></td>
73 <td colspan="2">
74 <div class="ansibleOptionAnchor" id="parameter-"></div>
75 <b>commands_accounting</b>
76 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
77 <div style="font-size: small">
78 <span style="color: purple">dictionary</span>
79 </div>
80 </td>
81 <td>
82 </td>
83 <td>
84 <div>AAA commands accounting configuration.</div>
85 </td>
86 </tr>
87 <tr>
88 <td class="elbow-placeholder"></td>
89 <td class="elbow-placeholder"></td>
90 <td class="elbow-placeholder"></td>
91 <td colspan="1">
92 <div class="ansibleOptionAnchor" id="parameter-"></div>
93 <b>accounting_console_exempt</b>
94 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
95 <div style="font-size: small">
96 <span style="color: purple">boolean</span>
97 </div>
98 </td>
99 <td>
100 <ul style="margin: 0; padding: 0"><b>Choices:</b>
101 <li>no</li>
102 <li>yes</li>
103 </ul>
104 </td>
105 <td>
106 <div>Exempt accounting of events from console.</div>
107 </td>
108 </tr>
109 <tr>
110 <td class="elbow-placeholder"></td>
111 <td class="elbow-placeholder"></td>
112 <td class="elbow-placeholder"></td>
113 <td colspan="1">
114 <div class="ansibleOptionAnchor" id="parameter-"></div>
115 <b>accounting_method</b>
116 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
117 <div style="font-size: small">
118 <span style="color: purple">list</span>
119 / <span style="color: purple">elements=string</span>
120 </div>
121 </td>
122 <td>
123 <ul style="margin: 0; padding: 0"><b>Choices:</b>
124 <li>tacacs+</li>
125 <li>logging</li>
126 </ul>
127 </td>
128 <td>
129 <div>Specifies the methods in which to perform accounting.</div>
130 </td>
131 </tr>
132 <tr>
133 <td class="elbow-placeholder"></td>
134 <td class="elbow-placeholder"></td>
135 <td class="elbow-placeholder"></td>
136 <td colspan="1">
137 <div class="ansibleOptionAnchor" id="parameter-"></div>
138 <b>accounting_record_type</b>
139 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
140 <div style="font-size: small">
141 <span style="color: purple">string</span>
142 </div>
143 </td>
144 <td>
145 <ul style="margin: 0; padding: 0"><b>Choices:</b>
146 <li>start-stop</li>
147 <li>stop-only</li>
148 </ul>
149 </td>
150 <td>
151 <div>Specifies the type of record to be sent to the accounting server.</div>
152 </td>
153 </tr>
154
155 <tr>
156 <td class="elbow-placeholder"></td>
157 <td class="elbow-placeholder"></td>
158 <td colspan="2">
159 <div class="ansibleOptionAnchor" id="parameter-"></div>
160 <b>session_accounting</b>
161 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
162 <div style="font-size: small">
163 <span style="color: purple">dictionary</span>
164 </div>
165 </td>
166 <td>
167 </td>
168 <td>
169 <div>AAA session accounting configuration.</div>
170 </td>
171 </tr>
172 <tr>
173 <td class="elbow-placeholder"></td>
174 <td class="elbow-placeholder"></td>
175 <td class="elbow-placeholder"></td>
176 <td colspan="1">
177 <div class="ansibleOptionAnchor" id="parameter-"></div>
178 <b>accounting_console_exempt</b>
179 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
180 <div style="font-size: small">
181 <span style="color: purple">boolean</span>
182 </div>
183 </td>
184 <td>
185 <ul style="margin: 0; padding: 0"><b>Choices:</b>
186 <li>no</li>
187 <li>yes</li>
188 </ul>
189 </td>
190 <td>
191 <div>Exempt accounting of events from console.</div>
192 </td>
193 </tr>
194 <tr>
195 <td class="elbow-placeholder"></td>
196 <td class="elbow-placeholder"></td>
197 <td class="elbow-placeholder"></td>
198 <td colspan="1">
199 <div class="ansibleOptionAnchor" id="parameter-"></div>
200 <b>accounting_method</b>
201 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
202 <div style="font-size: small">
203 <span style="color: purple">list</span>
204 / <span style="color: purple">elements=string</span>
205 </div>
206 </td>
207 <td>
208 <ul style="margin: 0; padding: 0"><b>Choices:</b>
209 <li>tacacs+</li>
210 <li>logging</li>
211 </ul>
212 </td>
213 <td>
214 <div>Specifies the methods in which to perform accounting.</div>
215 </td>
216 </tr>
217 <tr>
218 <td class="elbow-placeholder"></td>
219 <td class="elbow-placeholder"></td>
220 <td class="elbow-placeholder"></td>
221 <td colspan="1">
222 <div class="ansibleOptionAnchor" id="parameter-"></div>
223 <b>accounting_record_type</b>
224 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
225 <div style="font-size: small">
226 <span style="color: purple">string</span>
227 </div>
228 </td>
229 <td>
230 <ul style="margin: 0; padding: 0"><b>Choices:</b>
231 <li>start-stop</li>
232 <li>stop-only</li>
233 </ul>
234 </td>
235 <td>
236 <div>Specifies the type of record to be sent to the accounting server.</div>
237 </td>
238 </tr>
239
240
241 <tr>
242 <td class="elbow-placeholder"></td>
243 <td colspan="3">
244 <div class="ansibleOptionAnchor" id="parameter-"></div>
245 <b>authentication</b>
246 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
247 <div style="font-size: small">
248 <span style="color: purple">dictionary</span>
249 </div>
250 <div style="font-style: italic; font-size: small; color: darkgreen">added in 3.0.0</div>
251 </td>
252 <td>
253 </td>
254 <td>
255 <div>AAA authentication configuration</div>
256 </td>
257 </tr>
258 <tr>
259 <td class="elbow-placeholder"></td>
260 <td class="elbow-placeholder"></td>
261 <td colspan="2">
262 <div class="ansibleOptionAnchor" id="parameter-"></div>
263 <b>auth_method</b>
264 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
265 <div style="font-size: small">
266 <span style="color: purple">list</span>
267 / <span style="color: purple">elements=string</span>
268 </div>
269 </td>
270 <td>
271 <ul style="margin: 0; padding: 0"><b>Choices:</b>
272 <li>ldap</li>
273 <li>local</li>
274 <li>radius</li>
275 <li>tacacs+</li>
276 <li>cac-piv</li>
277 </ul>
278 </td>
279 <td>
280 <div>Specifies the order of the methods in which to authenticate login</div>
281 <div>Any 1 choice may be specified or 2 choices consisting of local and another group may be specified</div>
282 <div><code>cac-piv</code> option is only available in devices running sonic 4.5.0 and above.</div>
283 <div>MFA is not applicable when <code>cac-piv</code> is configured as first factor for authentication.</div>
284 </td>
285 </tr>
286 <tr>
287 <td class="elbow-placeholder"></td>
288 <td class="elbow-placeholder"></td>
289 <td colspan="2">
290 <div class="ansibleOptionAnchor" id="parameter-"></div>
291 <b>console_auth_local</b>
292 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
293 <div style="font-size: small">
294 <span style="color: purple">boolean</span>
295 </div>
296 </td>
297 <td>
298 <ul style="margin: 0; padding: 0"><b>Choices:</b>
299 <li>no</li>
300 <li>yes</li>
301 </ul>
302 </td>
303 <td>
304 <div>Enable/disable local authentication on console</div>
305 </td>
306 </tr>
307 <tr>
308 <td class="elbow-placeholder"></td>
309 <td class="elbow-placeholder"></td>
310 <td colspan="2">
311 <div class="ansibleOptionAnchor" id="parameter-"></div>
312 <b>failthrough</b>
313 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
314 <div style="font-size: small">
315 <span style="color: purple">boolean</span>
316 </div>
317 </td>
318 <td>
319 <ul style="margin: 0; padding: 0"><b>Choices:</b>
320 <li>no</li>
321 <li>yes</li>
322 </ul>
323 </td>
324 <td>
325 <div>Enable/disable failthrough</div>
326 </td>
327 </tr>
328 <tr>
329 <td class="elbow-placeholder"></td>
330 <td class="elbow-placeholder"></td>
331 <td colspan="2">
332 <div class="ansibleOptionAnchor" id="parameter-"></div>
333 <b>login_mfa_console</b>
334 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
335 <div style="font-size: small">
336 <span style="color: purple">boolean</span>
337 </div>
338 <div style="font-style: italic; font-size: small; color: darkgreen">added in 3.1.0</div>
339 </td>
340 <td>
341 <ul style="margin: 0; padding: 0"><b>Choices:</b>
342 <li>no</li>
343 <li>yes</li>
344 </ul>
345 </td>
346 <td>
347 <div>Enable/disable MFA method for console access.</div>
348 </td>
349 </tr>
350 <tr>
351 <td class="elbow-placeholder"></td>
352 <td class="elbow-placeholder"></td>
353 <td colspan="2">
354 <div class="ansibleOptionAnchor" id="parameter-"></div>
355 <b>mfa_auth_method</b>
356 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
357 <div style="font-size: small">
358 <span style="color: purple">string</span>
359 </div>
360 <div style="font-style: italic; font-size: small; color: darkgreen">added in 3.1.0</div>
361 </td>
362 <td>
363 <ul style="margin: 0; padding: 0"><b>Choices:</b>
364 <li>rsa-securid</li>
365 </ul>
366 </td>
367 <td>
368 <div>Specifies RSA SecurID as multi-factor authentication method.</div>
369 </td>
370 </tr>
371
372 <tr>
373 <td class="elbow-placeholder"></td>
374 <td colspan="3">
375 <div class="ansibleOptionAnchor" id="parameter-"></div>
376 <b>authorization</b>
377 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
378 <div style="font-size: small">
379 <span style="color: purple">dictionary</span>
380 </div>
381 <div style="font-style: italic; font-size: small; color: darkgreen">added in 3.0.0</div>
382 </td>
383 <td>
384 </td>
385 <td>
386 <div>AAA authorization configuration</div>
387 </td>
388 </tr>
389 <tr>
390 <td class="elbow-placeholder"></td>
391 <td class="elbow-placeholder"></td>
392 <td colspan="2">
393 <div class="ansibleOptionAnchor" id="parameter-"></div>
394 <b>commands_auth_method</b>
395 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
396 <div style="font-size: small">
397 <span style="color: purple">list</span>
398 / <span style="color: purple">elements=string</span>
399 </div>
400 </td>
401 <td>
402 <ul style="margin: 0; padding: 0"><b>Choices:</b>
403 <li>local</li>
404 <li>tacacs+</li>
405 </ul>
406 </td>
407 <td>
408 <div>Specifies the order of the methods in which to authorize commands</div>
409 </td>
410 </tr>
411 <tr>
412 <td class="elbow-placeholder"></td>
413 <td class="elbow-placeholder"></td>
414 <td colspan="2">
415 <div class="ansibleOptionAnchor" id="parameter-"></div>
416 <b>login_auth_method</b>
417 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
418 <div style="font-size: small">
419 <span style="color: purple">list</span>
420 / <span style="color: purple">elements=string</span>
421 </div>
422 </td>
423 <td>
424 <ul style="margin: 0; padding: 0"><b>Choices:</b>
425 <li>ldap</li>
426 <li>local</li>
427 </ul>
428 </td>
429 <td>
430 <div>Specifies the order of the methods in which to authorize login</div>
431 </td>
432 </tr>
433
434 <tr>
435 <td class="elbow-placeholder"></td>
436 <td colspan="3">
437 <div class="ansibleOptionAnchor" id="parameter-"></div>
438 <b>name_service</b>
439 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
440 <div style="font-size: small">
441 <span style="color: purple">dictionary</span>
442 </div>
443 <div style="font-style: italic; font-size: small; color: darkgreen">added in 3.0.0</div>
444 </td>
445 <td>
446 </td>
447 <td>
448 <div>AAA name-service configuration</div>
449 </td>
450 </tr>
451 <tr>
452 <td class="elbow-placeholder"></td>
453 <td class="elbow-placeholder"></td>
454 <td colspan="2">
455 <div class="ansibleOptionAnchor" id="parameter-"></div>
456 <b>group</b>
457 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
458 <div style="font-size: small">
459 <span style="color: purple">list</span>
460 / <span style="color: purple">elements=string</span>
461 </div>
462 </td>
463 <td>
464 <ul style="margin: 0; padding: 0"><b>Choices:</b>
465 <li>ldap</li>
466 <li>local</li>
467 <li>login</li>
468 </ul>
469 </td>
470 <td>
471 <div>Name-service source for group method</div>
472 </td>
473 </tr>
474 <tr>
475 <td class="elbow-placeholder"></td>
476 <td class="elbow-placeholder"></td>
477 <td colspan="2">
478 <div class="ansibleOptionAnchor" id="parameter-"></div>
479 <b>netgroup</b>
480 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
481 <div style="font-size: small">
482 <span style="color: purple">list</span>
483 / <span style="color: purple">elements=string</span>
484 </div>
485 </td>
486 <td>
487 <ul style="margin: 0; padding: 0"><b>Choices:</b>
488 <li>ldap</li>
489 <li>local</li>
490 </ul>
491 </td>
492 <td>
493 <div>Name-service source for netgroup method</div>
494 </td>
495 </tr>
496 <tr>
497 <td class="elbow-placeholder"></td>
498 <td class="elbow-placeholder"></td>
499 <td colspan="2">
500 <div class="ansibleOptionAnchor" id="parameter-"></div>
501 <b>passwd</b>
502 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
503 <div style="font-size: small">
504 <span style="color: purple">list</span>
505 / <span style="color: purple">elements=string</span>
506 </div>
507 </td>
508 <td>
509 <ul style="margin: 0; padding: 0"><b>Choices:</b>
510 <li>ldap</li>
511 <li>local</li>
512 <li>login</li>
513 </ul>
514 </td>
515 <td>
516 <div>Name-service source for passwd method</div>
517 </td>
518 </tr>
519 <tr>
520 <td class="elbow-placeholder"></td>
521 <td class="elbow-placeholder"></td>
522 <td colspan="2">
523 <div class="ansibleOptionAnchor" id="parameter-"></div>
524 <b>shadow</b>
525 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
526 <div style="font-size: small">
527 <span style="color: purple">list</span>
528 / <span style="color: purple">elements=string</span>
529 </div>
530 </td>
531 <td>
532 <ul style="margin: 0; padding: 0"><b>Choices:</b>
533 <li>ldap</li>
534 <li>local</li>
535 <li>login</li>
536 </ul>
537 </td>
538 <td>
539 <div>Name-service source for shadow method</div>
540 </td>
541 </tr>
542 <tr>
543 <td class="elbow-placeholder"></td>
544 <td class="elbow-placeholder"></td>
545 <td colspan="2">
546 <div class="ansibleOptionAnchor" id="parameter-"></div>
547 <b>sudoers</b>
548 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
549 <div style="font-size: small">
550 <span style="color: purple">list</span>
551 / <span style="color: purple">elements=string</span>
552 </div>
553 </td>
554 <td>
555 <ul style="margin: 0; padding: 0"><b>Choices:</b>
556 <li>ldap</li>
557 <li>local</li>
558 </ul>
559 </td>
560 <td>
561 <div>Name-service source for sudoers method</div>
562 </td>
563 </tr>
564
565
566 <tr>
567 <td colspan="4">
568 <div class="ansibleOptionAnchor" id="parameter-"></div>
569 <b>state</b>
570 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
571 <div style="font-size: small">
572 <span style="color: purple">string</span>
573 </div>
574 </td>
575 <td>
576 <ul style="margin: 0; padding: 0"><b>Choices:</b>
577 <li><div style="color: blue"><b>merged</b>&nbsp;&larr;</div></li>
578 <li>deleted</li>
579 <li>overridden</li>
580 <li>replaced</li>
581 </ul>
582 </td>
583 <td>
584 <div>The state of the configuration after module completion</div>
585 </td>
586 </tr>
587 </table>
588 <br/>
589
590
591 Notes
592 -----
593
594 .. note::
595 - Tested against Enterprise SONiC Distribution by Dell Technologies
596 - Supports ``check_mode``
597
598
599
600 Examples
601 --------
602
603 .. code-block:: yaml
604
605 # Using "merged" state
606 #
607 # Before state:
608 # -------------
609 #
610 # sonic# show aaa
611 # (No AAA configuration present)
612 #
613 # sonic# show mfa
614 # ---------------------------------------------------------
615 # Multi-factor Authentication Information
616 # ---------------------------------------------------------
617 # MFA Authentication : None
618 # Console Exempted : None
619 # MFA Service Security Profile : None
620 # RSA SecurID Security Profile : None
621
622 - name: Merge AAA configuration
623 dellemc.enterprise_sonic.sonic_aaa:
624 config:
625 authentication:
626 auth_method:
627 - local
628 - ldap
629 console_auth_local: true
630 failthrough: true
631 mfa_auth_method: 'rsa-securid'
632 login_mfa_console: true
633 authorization:
634 commands_auth_method:
635 - local
636 - tacacs+
637 login_auth_method:
638 - local
639 - ldap
640 accounting:
641 commands_accounting:
642 accounting_method:
643 - tacacs+
644 - logging
645 accounting_record_type: 'start-stop'
646 accounting_console_exempt: true
647 session_accounting:
648 accounting_method:
649 - logging
650 accounting_record_type: 'stop-only'
651 accounting_console_exempt: true
652 name_service:
653 group:
654 - ldap
655 netgroup:
656 - local
657 passwd:
658 - login
659 shadow:
660 - ldap
661 sudoers:
662 - local
663 state: merged
664
665 # After state:
666 # ------------
667 #
668 # sonic# show aaa
669 # ---------------------------------------------------------
670 # AAA Authentication Information
671 # ---------------------------------------------------------
672 # failthrough : True
673 # login-method : local, ldap
674 # login-mfa : rsa-securid
675 # console authentication : local
676 # ---------------------------------------------------------
677 # AAA Authorization Information
678 # ---------------------------------------------------------
679 # login : local, ldap
680 # commands : local, tacacs+
681 # ---------------------------------------------------------
682 # AAA Accounting Information
683 # ---------------------------------------------------------
684 # commands : tacacs+, logging (start-stop, console-disabled)
685 # session : logging (stop-only, console-disabled)
686 # ---------------------------------------------------------
687 # AAA Name-Service Information
688 # ---------------------------------------------------------
689 # group-method : ldap
690 # netgroup-method : local
691 # passwd-method : login
692 # shadow-method : ldap
693 # sudoers-method : local
694 #
695 # sonic# show mfa
696 # ---------------------------------------------------------
697 # Multi-factor Authentication Information
698 # ---------------------------------------------------------
699 # MFA Authentication : rsa-securid
700 # Console Exempted : No
701 # MFA Service Security Profile : None
702 # RSA SecurID Security Profile : None
703
704
705 # Using "replaced" state
706 #
707 # Before state:
708 # -------------
709 #
710 # sonic# show aaa
711 # ---------------------------------------------------------
712 # AAA Authentication Information
713 # ---------------------------------------------------------
714 # failthrough : True
715 # login-method : local, ldap
716 # login-mfa : rsa-securid
717 # console authentication : local
718 # ---------------------------------------------------------
719 # AAA Authorization Information
720 # ---------------------------------------------------------
721 # login : local, ldap
722 # commands : local, tacacs+
723 # ---------------------------------------------------------
724 # AAA Accounting Information
725 # ---------------------------------------------------------
726 # commands : tacacs+, logging (start-stop, console-disabled)
727 # session : logging (stop-only, console-disabled)
728 # ---------------------------------------------------------
729 # AAA Name-Service Information
730 # ---------------------------------------------------------
731 # group-method : ldap
732 # netgroup-method : local
733 # passwd-method : login
734 # shadow-method : ldap
735 # sudoers-method : local
736 #
737 # sonic# show mfa
738 # ---------------------------------------------------------
739 # Multi-factor Authentication Information
740 # ---------------------------------------------------------
741 # MFA Authentication : rsa-securid
742 # Console Exempted : No
743 # MFA Service Security Profile : None
744 # RSA SecurID Security Profile : None
745
746 - name: Replace AAA configuration
747 dellemc.enterprise_sonic.sonic_aaa:
748 config:
749 authentication:
750 auth_method:
751 - cac-piv
752 - local
753 console_auth_local: true
754 failthrough: false
755 authorization:
756 commands_auth_method:
757 - local
758 accounting:
759 commands_accounting:
760 accounting_method:
761 - tacacs+
762 session_accounting:
763 accounting_record_type: 'start-stop'
764 name_service:
765 group:
766 - ldap
767 state: replaced
768
769 # After state:
770 # ------------
771 #
772 # sonic# show aaa
773 # ---------------------------------------------------------
774 # AAA Authentication Information
775 # ---------------------------------------------------------
776 # failthrough : False
777 # login-method : cac-piv, local
778 # login-mfa : None
779 # console authentication : local
780 # ---------------------------------------------------------
781 # AAA Authorization Information
782 # ---------------------------------------------------------
783 # login : local
784 # ---------------------------------------------------------
785 # AAA Accounting Information
786 # ---------------------------------------------------------
787 # commands : tacacs+ (start-stop, console-disabled)
788 # session : logging (start-stop, console-disabled)
789 # ---------------------------------------------------------
790 # AAA Name-Service Information
791 # ---------------------------------------------------------
792 # group-method : ldap
793 #
794 # sonic# show mfa
795 # ---------------------------------------------------------
796 # Multi-factor Authentication Information
797 # ---------------------------------------------------------
798 # MFA Authentication : None
799 # Console Exempted : None
800 # MFA Service Security Profile : None
801 # RSA SecurID Security Profile : None
802
803
804 # Using "overridden" state
805 #
806 # Before state:
807 # -------------
808 #
809 # sonic# show aaa
810 # ---------------------------------------------------------
811 # AAA Authentication Information
812 # ---------------------------------------------------------
813 # failthrough : True
814 # login-method : local, ldap
815 # login-mfa : rsa-securid
816 # console authentication : local
817 # ---------------------------------------------------------
818 # AAA Authorization Information
819 # ---------------------------------------------------------
820 # login : local, ldap
821 # commands : local, tacacs+
822 # ---------------------------------------------------------
823 # AAA Accounting Information
824 # ---------------------------------------------------------
825 # commands : tacacs+ (start-stop, console-disabled)
826 # session : logging (start-stop, console-disabled)
827 # ---------------------------------------------------------
828 # AAA Name-Service Information
829 # ---------------------------------------------------------
830 # group-method : ldap
831 # netgroup-method : local
832 # passwd-method : login
833 # shadow-method : ldap
834 # sudoers-method : local
835 #
836 # sonic# show mfa
837 # ---------------------------------------------------------
838 # Multi-factor Authentication Information
839 # ---------------------------------------------------------
840 # MFA Authentication : rsa-securid
841 # Console Exempted : Yes
842 # MFA Service Security Profile : None
843 # RSA SecurID Security Profile : None
844
845 - name: Override AAA configuration
846 dellemc.enterprise_sonic.sonic_aaa:
847 config:
848 authentication:
849 auth_method:
850 - tacacs+
851 console_auth_local: true
852 failthrough: true
853 mfa_auth_method: 'rsa-securid'
854 login_mfa_console: true
855 accounting:
856 commands_accounting:
857 accounting_method:
858 - tacacs+
859 - logging
860 accounting_record_type: 'stop-only'
861 accounting_console_exempt: true
862 session_accounting:
863 accounting_method:
864 - logging
865 accounting_record_type: 'stop-only'
866 accounting_console_exempt: true
867 state: overridden
868
869 # After state:
870 # ------------
871 #
872 # sonic# show aaa
873 # ---------------------------------------------------------
874 # AAA Authentication Information
875 # ---------------------------------------------------------
876 # failthrough : True
877 # login-method : tacacs+
878 # login-mfa : rsa-securid
879 # console authentication : local
880 #
881 # sonic# show mfa
882 # ---------------------------------------------------------
883 # Multi-factor Authentication Information
884 # ---------------------------------------------------------
885 # MFA Authentication : rsa-securid
886 # Console Exempted : No
887 # MFA Service Security Profile : None
888 # RSA SecurID Security Profile : None
889 # ---------------------------------------------------------
890 # AAA Accounting Information
891 # ---------------------------------------------------------
892 # commands : tacacs+, logging (stop-only, console-disabled)
893 # session : logging (stop-only, console-disabled)
894
895 # Using "deleted" state
896 #
897 # Before state:
898 # -------------
899 #
900 # sonic# show aaa
901 # ---------------------------------------------------------
902 # AAA Authentication Information
903 # ---------------------------------------------------------
904 # failthrough : True
905 # login-method : local, ldap
906 # login-mfa : rsa-securid
907 # console authentication : local
908 # ---------------------------------------------------------
909 # AAA Authorization Information
910 # ---------------------------------------------------------
911 # login : local, ldap
912 # commands : local, tacacs+
913 # ---------------------------------------------------------
914 # AAA Accounting Information
915 # ---------------------------------------------------------
916 # commands : tacacs+, logging (stop-only, console-disabled)
917 # session : logging (stop-only, console-disabled)
918 # ---------------------------------------------------------
919 # AAA Name-Service Information
920 # ---------------------------------------------------------
921 # group-method : ldap
922 # netgroup-method : local
923 # passwd-method : login
924 # shadow-method : ldap
925 # sudoers-method : local
926 #
927 # sonic# show mfa
928 # ---------------------------------------------------------
929 # Multi-factor Authentication Information
930 # ---------------------------------------------------------
931 # MFA Authentication : rsa-securid
932 # Console Exempted : No
933 # MFA Service Security Profile : None
934 # RSA SecurID Security Profile : None
935
936 - name: Delete AAA individual attributes
937 dellemc.enterprise_sonic.sonic_aaa:
938 config:
939 authentication:
940 auth_method:
941 - local
942 - ldap
943 console_auth_local: true
944 failthrough: true
945 mfa_auth_method: 'rsa-securid'
946 login_mfa_console: true
947 authorization:
948 commands_auth_method:
949 - local
950 - tacacs+
951 login_auth_method:
952 - local
953 - ldap
954 accounting:
955 commands_accounting:
956 accounting_method:
957 - tacacs+
958 - logging
959 accounting_record_type: 'stop-only'
960 accounting_console_exempt: true
961 session_accounting:
962 accounting_method:
963 - logging
964 accounting_record_type: 'stop-only'
965 accounting_console_exempt: true
966 name_service:
967 group:
968 - ldap
969 netgroup:
970 - local
971 passwd:
972 - login
973 shadow:
974 - ldap
975 sudoers:
976 - local
977 state: deleted
978
979 # After state:
980 # ------------
981 #
982 # sonic# show aaa
983 # (No AAA configuration present)
984 #
985 # sonic# show mfa
986 # ---------------------------------------------------------
987 # Multi-factor Authentication Information
988 # ---------------------------------------------------------
989 # MFA Authentication : None
990 # Console Exempted : None
991 # MFA Service Security Profile : None
992 # RSA SecurID Security Profile : None
993
994
995 # Using "deleted" state
996 #
997 # Before state:
998 # -------------
999 #
1000 # sonic# show aaa
1001 # ---------------------------------------------------------
1002 # AAA Authentication Information
1003 # ---------------------------------------------------------
1004 # failthrough : True
1005 # login-method : local, ldap
1006 # login-mfa : rsa-securid
1007 # console authentication : local
1008 # ---------------------------------------------------------
1009 # AAA Authorization Information
1010 # ---------------------------------------------------------
1011 # login : local, ldap
1012 # commands : local, tacacs+
1013 # ---------------------------------------------------------
1014 # AAA Accounting Information
1015 # ---------------------------------------------------------
1016 # commands : tacacs+, logging (stop-only, console-disabled)
1017 # session : logging (stop-only, console-disabled)
1018 # ---------------------------------------------------------
1019 # AAA Name-Service Information
1020 # ---------------------------------------------------------
1021 # group-method : ldap
1022 # netgroup-method : local
1023 # passwd-method : login
1024 # shadow-method : ldap
1025 # sudoers-method : local
1026 #
1027 # sonic# show mfa
1028 # ---------------------------------------------------------
1029 # Multi-factor Authentication Information
1030 # ---------------------------------------------------------
1031 # MFA Authentication : rsa-securid
1032 # Console Exempted : Yes
1033 # MFA Service Security Profile : None
1034 # RSA SecurID Security Profile : None
1035
1036 - name: Delete all AAA configuration
1037 dellemc.enterprise_sonic.sonic_aaa:
1038 config: {}
1039 state: deleted
1040
1041 # After state:
1042 # ------------
1043 #
1044 # sonic# show aaa
1045 # (No AAA configuration present)
1046 #
1047 # sonic# show mfa
1048 # ---------------------------------------------------------
1049 # Multi-factor Authentication Information
1050 # ---------------------------------------------------------
1051 # MFA Authentication : None
1052 # Console Exempted : None
1053 # MFA Service Security Profile : None
1054 # RSA SecurID Security Profile : None
1055
1056
1057
1058 Return Values
1059 -------------
1060 Common return values are documented `here <https://docs.ansible.com/projects/ansible/latest/reference_appendices/common_return_values.html#common-return-values>`_, the following are the fields unique to this module:
1061
1062 .. raw:: html
1063
1064 <table border=0 cellpadding=0 class="documentation-table">
1065 <tr>
1066 <th colspan="1">Key</th>
1067 <th>Returned</th>
1068 <th width="100%">Description</th>
1069 </tr>
1070 <tr>
1071 <td colspan="1">
1072 <div class="ansibleOptionAnchor" id="return-"></div>
1073 <b>after</b>
1074 <a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a>
1075 <div style="font-size: small">
1076 <span style="color: purple">dictionary</span>
1077 </div>
1078 </td>
1079 <td>when changed</td>
1080 <td>
1081 <div>The resulting configuration module invocation.</div>
1082 <br/>
1083 </td>
1084 </tr>
1085 <tr>
1086 <td colspan="1">
1087 <div class="ansibleOptionAnchor" id="return-"></div>
1088 <b>after_generated</b>
1089 <a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a>
1090 <div style="font-size: small">
1091 <span style="color: purple">dictionary</span>
1092 </div>
1093 </td>
1094 <td>when <code>check_mode</code></td>
1095 <td>
1096 <div>The generated configuration module invocation.</div>
1097 <br/>
1098 </td>
1099 </tr>
1100 <tr>
1101 <td colspan="1">
1102 <div class="ansibleOptionAnchor" id="return-"></div>
1103 <b>before</b>
1104 <a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a>
1105 <div style="font-size: small">
1106 <span style="color: purple">dictionary</span>
1107 </div>
1108 </td>
1109 <td>always</td>
1110 <td>
1111 <div>The configuration prior to the module invocation.</div>
1112 <br/>
1113 </td>
1114 </tr>
1115 <tr>
1116 <td colspan="1">
1117 <div class="ansibleOptionAnchor" id="return-"></div>
1118 <b>commands</b>
1119 <a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a>
1120 <div style="font-size: small">
1121 <span style="color: purple">list</span>
1122 </div>
1123 </td>
1124 <td>always</td>
1125 <td>
1126 <div>The set of commands pushed to the remote device.</div>
1127 <br/>
1128 <div style="font-size: smaller"><b>Sample:</b></div>
1129 <div style="font-size: smaller; color: blue; word-wrap: break-word; word-break: break-all;">[&#x27;command 1&#x27;, &#x27;command 2&#x27;, &#x27;command 3&#x27;]</div>
1130 </td>
1131 </tr>
1132 </table>
1133 <br/><br/>
1134
1135
1136 Status
1137 ------
1138
1139
1140 Authors
1141 ~~~~~~~
1142
1143 - S\. Talabi (@stalabi1)