Skip to content

Commit 4c16961

Browse files
Using vars in hosts.ini
1 parent 0316b21 commit 4c16961

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

hosts.ini.example

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
[webservers:vars]
2+
ansible_become_method=su
3+
ansible_user=root
4+
15
[webservers]
2-
<host1> ansible_become_method=su ansible_user=root
3-
<host2> ansible_become_method=su ansible_user=root
6+
<host1>
7+
<host2>

0 commit comments

Comments
 (0)