Debian Codegraph @

ansible_collections/dellemc/enterprise_sonic/playbooks/common_examples/sonic_aaa.yaml

raw symbols SCIP
1 ---
2 - name: Ansible resource module example for sonic_aaa
3 hosts: datacenter
4 gather_facts: false
5 connection: httpapi
6 collections:
7 - dellemc.enterprise_sonic
8 tasks:
9 - name: Delete all users
10 sonic_users:
11 config:
12 state: deleted
13 - name: Delete all aaa
14 sonic_aaa:
15 config:
16 state: deleted
17 - name: Delete all tacacs servers
18 sonic_tacacs_server:
19 config:
20 state: deleted
21 - name: Delete all radius servers
22 sonic_radius_server:
23 config:
24 state: deleted
25 - name: Merge users configurations
26 sonic_users:
27 config:
28 - name: sysadmin
29 role: admin
30 password: admin
31 update_password: always
32 - name: sysoperator
33 role: operator
34 password: operator
35 update_password: always
36 state: merged
37 - name: Test SONiC aaa
38 sonic_aaa:
39 config:
40 authentication:
41 auth_method:
42 - local
43 - ldap
44 - radius
45 - tacacs+
46 console_auth_local: true
47 failthrough: true
48 authorization:
49 commands_auth_method:
50 - local
51 - tacacs+
52 login_auth_method:
53 - local
54 - ldap
55 name_service:
56 group:
57 - ldap
58 - local
59 - login
60 netgroup:
61 - ldap
62 - local
63 passwd:
64 - ldap
65 - local
66 - login
67 shadow:
68 - ldap
69 - local
70 - login
71 sudoers:
72 - ldap
73 - local
74 state: merged
75 - name: Merge tacacs configurations
76 sonic_tacacs_server:
77 config:
78 auth_type: pap
79 key: pap
80 source_interface: Eth 1/2
81 timeout: 10
82 servers:
83 host:
84 - name: 1.2.3.4
85 auth_type: pap
86 key: 1234
87 state: merged
88 - name: Merge radius configurations
89 sonic_radius_server:
90 config:
91 auth_type: chap
92 key: chap
93 nas_ip: 1.2.3.4
94 statistics: true
95 timeout: 10
96 retransmit: 3
97 servers:
98 host:
99 - name: hostx.local
100 auth_type: mschapv2
101 key: local
102 priority: 2
103 port: 52
104 retransmit: 2
105 timeout: 20
106 source_interface: Eth 1/2
107 vrf: mgmt
108 state: merged