blob: 81f916afaddfc2c09651ecb9d00ddb551a26c4a9 (
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
|
- name: Ldap group test
hosts: ism
connection: local
gather_facts: no
vars:
ism:
host: "{{ ansible_ssh_host }}"
username: "{{ username }}"
password: "{{ password }}"
tasks:
- name: "Add ldap group information"
inspur.sm.ldap_group:
state: "present"
name: "wbs"
base: "cn=manager"
pri: "administrator"
kvm: "enable"
vm: "disable"
provider: "{{ ism }}"
- name: "Set ldap group information"
inspur.sm.ldap_group:
state: "present"
name: "wbs"
pri: "user"
kvm: "disable"
provider: "{{ ism }}"
- name: "Delete ldap group information"
inspur.sm.ldap_group:
state: "absent"
name: "wbs"
provider: "{{ ism }}"
|