Skip to content

Commit bd0f4af

Browse files
author
Markus Koch
committed
update_etc_hosts: typo in argspecs
1 parent 6ee18d1 commit bd0f4af

File tree

3 files changed

+19
-1
lines changed

3 files changed

+19
-1
lines changed

roles/update_etc_hosts/meta/argument_specs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ argument_specs:
2020
- IP address of the node
2121
node_name:
2222
description:
23-
- Hostame of the node
23+
- Hostname of the node
2424
node_domain:
2525
description:
2626
- Domainname of the node
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
127.0.0.1 localhost
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,23 @@
11
---
2+
# you can run 'ansible-playbook test.yml -e __update_etc_hosts_file=./test.hosts' for testing this role
23
- name: test play
34
hosts: localhost
45
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+
522
roles:
623
- update_etc_hosts

0 commit comments

Comments
 (0)