blob: dcb50c91995709a6f0df6daf3fef638cc0f0b73b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
|
---
#
# ISE Internal User
#
- name: Create Internal User(s) Play
hosts: ise_servers
vars:
- default_password: C1sco1234!5
- users:
gather_facts: false
tasks:
# - name: internal_user
# cisco.ise.internal_user:
# ise_hostname: "{{ ise_hostname }}"
# ise_username: "{{ ise_username }}"
# ise_password: "{{ ise_password }}"
# ise_verify: "{{ ise_verify }}"
# state: present
# name: '{{ item.name }}'
# description: '{{ item.description | default() }}'
# enabled: '{{ item.enabled | default(true) }}'
# password: '{{ item.password | default(default_password) }}'
# # ▼▼▼ optional attributes ▼▼▼
# # changePassword: '{{ item.changePassword | default(false) }}'
# # passwordIDStore: '{{ item.idStore | default(Internal Users) }}'
# # identityGroups: a1740510-8c01-11e6-996c-525400b48521
# # customAttributes:
# # Created:
# # Expired:
# register: results
# - name: Debug results
# ansible.builtin.debug: var=results
- name: internal_user thomas
cisco.ise.internal_user:
ise_hostname: "{{ ise_hostname }}"
ise_username: "{{ ise_username }}"
ise_password: "{{ ise_password }}"
ise_verify: "{{ ise_verify }}"
ise_debug: "{{ ise_debug }}"
state: present
name: thomas
# password: "{{ default_password }}"
changePassword: false
enabled: true
expiryDateEnabled: false
passwordIDStore: Internal Users
identityGroups: a1740510-8c01-11e6-996c-525400b48521 # Employee
register: result
- name: Print result
ansible.builtin.debug:
var: result
# - name: internal_user employee
# cisco.ise.internal_user:
# ise_hostname: "{{ ise_hostname }}"
# ise_username: "{{ ise_username }}"
# ise_password: "{{ ise_password }}"
# ise_verify: "{{ ise_verify }}"
# ise_debug: "{{ ise_debug }}"
# state: present
# name: employee
# password: "{{ default_password }}"
# changePassword: false
# enabled: true
# expiryDateEnabled: false
# passwordIDStore: Internal Users
# identityGroups: a1740510-8c01-11e6-996c-525400b48521 # Employee
# - name: internal_user radius-probe
# cisco.ise.internal_user:
# ise_hostname: "{{ ise_hostname }}"
# ise_username: "{{ ise_username }}"
# ise_password: "{{ ise_password }}"
# ise_verify: "{{ ise_verify }}"
# state: present
# name: radius-probe
# password: "{{ default_password }}"
# changePassword: false
# enabled: true
# expiryDateEnabled: false
# passwordIDStore: Internal Users
# identityGroups: a1740510-8c01-11e6-996c-525400b48521 # Employee
# - name: internal_user meraki_8021x_test
# cisco.ise.internal_user:
# ise_hostname: "{{ ise_hostname }}"
# ise_username: "{{ ise_username }}"
# ise_password: "{{ ise_password }}"
# ise_verify: "{{ ise_verify }}"
# state: present
# name: meraki_8021x_test
# password: "{{ default_password }}"
# changePassword: false
# enabled: true
# expiryDateEnabled: false
# passwordIDStore: Internal Users
# identityGroups: a1740510-8c01-11e6-996c-525400b48521 # Employee
|