This repository was archived by the owner on Nov 12, 2020. It is now read-only.
File tree 2 files changed +36
-1
lines changed
2 files changed +36
-1
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- - name : Playbook for role testing
2
+ - name : Playbook for role testing (hosts_type = block)
3
3
hosts : all
4
4
5
5
vars :
6
6
hosts_group_name : ungrouped
7
7
hosts_additional_entries :
8
8
testing.osism.xyz : 127.0.1.1
9
9
foobar.osism.xyz : 127.0.1.2
10
+ hosts_type : block
11
+
12
+ roles :
13
+ - role : ansible-hosts
14
+
15
+ - name : Playbook for role testing (hosts_type = local)
16
+ hosts : all
17
+
18
+ vars :
19
+ hosts_group_name : ungrouped
20
+ hosts_additional_entries :
21
+ testing.osism.xyz : 127.0.1.1
22
+ foobar.osism.xyz : 127.0.1.2
23
+ hosts_type : local
24
+
25
+ roles :
26
+ - role : ansible-hosts
27
+
28
+ - name : Playbook for role testing (hosts_type = template)
29
+ hosts : all
30
+
31
+ vars :
32
+ hosts_group_name : ungrouped
33
+ hosts_additional_entries :
34
+ testing.osism.xyz : 127.0.1.1
35
+ foobar.osism.xyz : 127.0.1.2
36
+ hosts_type : template
10
37
11
38
roles :
12
39
- role : ansible-hosts
Original file line number Diff line number Diff line change 6
6
register : hosts_tempfile
7
7
delegate_to : localhost
8
8
run_once : true
9
+ tags :
10
+ - molecule-idempotence-notest
9
11
10
12
- name : Generate temporary /etc/hosts file
11
13
template :
12
14
src : " hosts-template.j2"
13
15
dest : " {{ hosts_tempfile.path }}"
14
16
delegate_to : localhost
15
17
run_once : true
18
+ tags :
19
+ - molecule-idempotence-notest
16
20
17
21
- name : Copy /etc/hosts file
18
22
copy :
23
27
mode : 0644
24
28
backup : " {{ hosts_file_backup }}"
25
29
become : true
30
+ tags :
31
+ - molecule-idempotence-notest
26
32
27
33
- name : Delete temporary file
28
34
file :
29
35
path : " {{ hosts_tempfile.path }}"
30
36
state : absent
31
37
delegate_to : localhost
32
38
run_once : true
39
+ tags :
40
+ - molecule-idempotence-notest
You can’t perform that action at this time.
0 commit comments