This repository was archived by the owner on Nov 12, 2020. It is now read-only.
File tree 2 files changed +32
-1
lines changed
2 files changed +32
-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 : molecule-idempotence-notest
9
10
10
11
- name : Generate temporary /etc/hosts file
11
12
template :
12
13
src : " hosts-template.j2"
13
14
dest : " {{ hosts_tempfile.path }}"
14
15
delegate_to : localhost
15
16
run_once : true
17
+ tags : molecule-idempotence-notest
16
18
17
19
- name : Copy /etc/hosts file
18
20
copy :
23
25
mode : 0644
24
26
backup : " {{ hosts_file_backup }}"
25
27
become : true
28
+ tags : molecule-idempotence-notest
26
29
27
30
- name : Delete temporary file
28
31
file :
29
32
path : " {{ hosts_tempfile.path }}"
30
33
state : absent
31
34
delegate_to : localhost
32
35
run_once : true
36
+ tags : molecule-idempotence-notest
You can’t perform that action at this time.
0 commit comments