File tree Expand file tree Collapse file tree 3 files changed +19
-1
lines changed Expand file tree Collapse file tree 3 files changed +19
-1
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ argument_specs:
20
20
- IP address of the node
21
21
node_name :
22
22
description :
23
- - Hostame of the node
23
+ - Hostname of the node
24
24
node_domain :
25
25
description :
26
26
- Domainname of the node
Original file line number Diff line number Diff line change
1
+ 127.0.0.1 localhost
Original file line number Diff line number Diff line change 1
1
---
2
+ # you can run 'ansible-playbook test.yml -e __update_etc_hosts_file=./test.hosts' for testing this role
2
3
- name : test play
3
4
hosts : localhost
4
5
remote_user : root
6
+ become : true
7
+
8
+ vars :
9
+ update_etc_hosts_list :
10
+ - node_ip : 1.2.3.4
11
+ node_name : host1
12
+ node_domain : abc.de
13
+ aliases :
14
+ - alias1
15
+ - anotheralias2
16
+ node_comment : " Here comes text after hashsign"
17
+ state : present
18
+ - node_ip : 1.2.3.5
19
+ node_name : host2
20
+ state : absent
21
+
5
22
roles :
6
23
- update_etc_hosts
You can’t perform that action at this time.
0 commit comments