-
-
Notifications
You must be signed in to change notification settings - Fork 50
/
Copy pathmolecule.yml
290 lines (284 loc) · 6.79 KB
/
molecule.yml
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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
---
#
# Molecule using Vagrant + Virtualbox so we can test playbooks on Linux and Windows
#
#galaxy_info:
# role_name: ansible_role_example_role
dependency:
name: galaxy
driver:
name: vagrant
provider:
name: virtualbox
lint: |
set -e
ansible-lint tasks/main.yml
platforms:
- name: ansible-role-example-role-centos-83
box: bento/centos-8.3
memory: 512
cpus: 1
config_options:
ssh.keep_alive: yes
ssh.remote_user: "'vagrant'"
ssh.password: "'vagrant'"
interfaces:
- network_name: forwarded_port
guest: 22
host: 3221
provision: true
state: up
groups:
- linux
- name: ansible-role-example-role-centos-77
box: bento/centos-7.7
memory: 256
cpus: 1
config_options:
ssh.keep_alive: yes
ssh.remote_user: "'vagrant'"
ssh.password: "'vagrant'"
interfaces:
- network_name: forwarded_port
guest: 22
host: 3222
provision: true
state: up
groups:
- linux
- name: ansible-role-example-role-debian-10
box: bento/debian-10
memory: 512
cpus: 1
config_options:
ssh.keep_alive: yes
ssh.remote_user: "'vagrant'"
ssh.password: "'vagrant'"
interfaces:
- network_name: forwarded_port
guest: 22
host: 3223
provision: true
state: up
groups:
- linux
- name: ansible-role-example-role-debian-9
box: bento/debian-9
memory: 512
cpus: 1
config_options:
ssh.keep_alive: yes
ssh.remote_user: "'vagrant'"
ssh.password: "'vagrant'"
interfaces:
- network_name: forwarded_port
guest: 22
host: 3224
provision: true
state: up
groups:
- linux
- name: ansible-role-example-role-ubuntu-2204
box: bento/ubuntu-22.04
memory: 1024
cpus: 1
config_options:
ssh.keep_alive: yes
ssh.remote_user: "'vagrant'"
ssh.password: "'vagrant'"
interfaces:
- network_name: forwarded_port
guest: 22
host: 3225
provision: true
groups:
- linux
- name: ansible-role-example-role-windows-2019
box: jborean93/WindowsServer2019
memory: 1024
cpus: 1
config_options:
vm.communicator: "'winrm'"
winrm.remote_user: "'vagrant'"
winrm.password: "'vagrant'"
interfaces:
- network_name: forwarded_port
guest: 5986
host: 59970
provision: true
groups:
- windows
- name: ansible-role-example-role-ubuntu-2004
box: bento/ubuntu-20.04
memory: 512
cpus: 1
config_options:
ssh.keep_alive: yes
ssh.remote_user: "'vagrant'"
ssh.password: "'vagrant'"
interfaces:
- network_name: forwarded_port
guest: 22
host: 3226
provision: true
state: up
groups:
- linux
- name: ansible-role-example-role-ubuntu-1804
box: bento/ubuntu-18.04
memory: 512
cpus: 1
config_options:
ssh.keep_alive: yes
ssh.remote_user: "'vagrant'"
ssh.password: "'vagrant'"
interfaces:
- network_name: forwarded_port
guest: 22
host: 3227
provision: true
state: up
groups:
- linux
- name: ansible-role-example-role-redhat-83
box: generic/rhel8
memory: 512
cpus: 1
config_options:
ssh.keep_alive: yes
ssh.remote_user: "'vagrant'"
ssh.password: "'vagrant'"
interfaces:
- network_name: forwarded_port
guest: 22
host: 3228
provision: true
state: up
groups:
- linux
- name: ansible-role-example-role-redhat-79
box: generic/rhel7
memory: 512
cpus: 1
config_options:
ssh.keep_alive: yes
ssh.remote_user: "'vagrant'"
ssh.password: "'vagrant'"
interfaces:
- network_name: forwarded_port
guest: 22
host: 3229
provision: true
state: up
groups:
- linux
- name: ansible-role-example-role-windows-2016
box: jborean93/WindowsServer2016
memory: 1024
cpus: 1
config_options:
vm.communicator: "'winrm'"
winrm.remote_user: "'vagrant'"
winrm.password: "'vagrant'"
interfaces:
- network_name: forwarded_port
guest: 5986
host: 59967
provision: true
state: up
groups:
- windows
provisioner:
name: ansible
connection_options:
ansible_ssh_user: vagrant
log: true
inventory:
host_vars:
ansible-role-example-role-windows-2019:
ansible_become: false
ansible_user: vagrant
ansible_password: vagrant
ansible_port: 59970
ansible_host: 127.0.0.1
ansible_connection: winrm
ansible_winrm_scheme: https
ansible_winrm_server_cert_validation: ignore
ansible-role-example-role-ubuntu-2204:
ansible_connection: ssh
ansible_port: 3225
ansible_user: vagrant
ansible_password: vagrant
ansible_host: 127.0.0.1
ansible-role-example-role-centos-83:
ansible_connection: ssh
ansible_port: 3221
ansible_user: vagrant
ansible_password: vagrant
ansible_host: 127.0.0.1
ansible-role-example-role-centos-77:
ansible_connection: ssh
ansible_port: 3222
ansible_user: vagrant
ansible_password: vagrant
ansible_host: 127.0.0.1
ansible-role-example-role-debian-10:
ansible_connection: ssh
ansible_port: 3223
ansible_user: vagrant
ansible_password: vagrant
ansible_host: 127.0.0.1
ansible-role-example-role-debian-9:
ansible_connection: ssh
ansible_port: 3224
ansible_user: vagrant
ansible_password: vagrant
ansible_host: 127.0.0.1
ansible-role-example-role-ubuntu-2004:
ansible_connection: ssh
ansible_port: 3225
ansible_user: vagrant
ansible_password: vagrant
ansible_host: 127.0.0.1
ansible-role-example-role-ubuntu-1804:
ansible_connection: ssh
ansible_port: 3226
ansible_user: vagrant
ansible_password: vagrant
ansible_host: 127.0.0.1
ansible-role-example-role-redhat-83:
ansible_connection: ssh
ansible_port: 3227
ansible_user: vagrant
ansible_password: vagrant
ansible_host: 127.0.0.1
ansible-role-example-role-redhat-79:
ansible_connection: ssh
ansible_port: 3228
ansible_user: vagrant
ansible_password: vagrant
ansible_host: 127.0.0.1
ansible-role-example-role-windows-2016:
ansible_become: false
ansible_user: vagrant
ansible_password: vagrant
ansible_port: 59967
ansible_host: 127.0.0.1
ansible_connection: winrm
ansible_winrm_scheme: https
ansible_winrm_server_cert_validation: ignore
group_vars:
linux:
ansible_become: true
windows:
ansible_become_user: Administrator
ansible_become_method: runas
lint:
name: ansible-lint
scenario:
name: default
converge_sequence:
- create
- converge
verifier:
name: ansible