Files
offline_kubespray/collection/inspur/sm/playbooks/modules/examples-ldap_group.yml
ByeonJungHun 360c6eef4a offline 작업
2024-02-19 16:02:29 +09:00

35 lines
743 B
YAML

- 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 }}"