blob: bc12fe6edd8539c851ccba608092186af903dd09 (
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
|
- name: ad test
hosts: ism
connection: local
gather_facts: no
vars:
ism:
host: "{{ ansible_ssh_host }}"
username: "{{ username }}"
password: "{{ password }}"
tasks:
- name: "set active directory information"
inspur.sm.edit_ad:
enable: "disable"
provider: "{{ ism }}"
- name: "set active directory information"
inspur.sm.edit_ad:
enable: "enable"
name: "inspur"
code: "123456"
timeout: 120
domain: "inspur.com"
addr1: "100.2.2.2"
addr2: "100.2.2.3"
addr3: "100.2.2.4"
provider: "{{ ism }}"
|