diff --git a/hosts b/hosts.yml similarity index 63% rename from hosts rename to hosts.yml index 45fb033..91009c6 100644 --- a/hosts +++ b/hosts.yml @@ -9,13 +9,19 @@ # - You can enter hostnames or ip addresses # - A hostname/ip can be a member of multiple groups -[anygroup] -server1 ansible_host=192.168.0.1 -server2 ansible_host=192.168.0.2 -server3 ansible_host=192.168.0.3 -server4 ansible_host=192.168.0.4 +anygroup: + hosts: + server1: + ansible_host: 192.168.0.1 + server2: + ansible_host: 192.168.0.2 + server3: + ansible_host: 192.168.0.3 + server4: + ansible_host: 192.168.0.4 # Add your own groups here. Hosts can be added to multiple groups like so: -# [anothergroup] -# server[1:3] -# anotherserver ansible_host=192.168.0.10 +# anothergroup: +# server[1:3]: +# anotherserver: +# ansible_host: 192.168.0.10