blob: 02e7478bfcf2f212e607c09c56f09a099951ecdc (
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
|
- name: smtp test
hosts: ism
connection: local
gather_facts: no
vars:
ism:
host: "{{ ansible_ssh_host }}"
username: "{{ username }}"
password: "{{ password }}"
tasks:
- name: "set smtp information"
inspur.sm.edit_smtp:
interface: "eth0"
email: "inspur@Inspur.com"
primary_status: "enable"
primary_ip: "100.2.2.2"
primary_name: "inspur"
primary_auth: "disable"
provider: "{{ ism }}"
- name: "set smtp information"
inspur.sm.edit_smtp:
interface: "eth0"
email: "inspur@Inspur.com"
primary_status: "enable"
primary_ip: "100.2.2.2"
primary_name: "inspur"
primary_auth: "enable"
primary_username: "test"
primary_password: "123456"
provider: "{{ ism }}"
|