0
0

transformed hosts file into yaml file

This commit is contained in:
2023-01-19 21:23:39 +01:00
parent 0be62a2105
commit c06d2e9197

View File

@@ -9,13 +9,19 @@
# - You can enter hostnames or ip addresses # - You can enter hostnames or ip addresses
# - A hostname/ip can be a member of multiple groups # - A hostname/ip can be a member of multiple groups
[anygroup] anygroup:
server1 ansible_host=192.168.0.1 hosts:
server2 ansible_host=192.168.0.2 server1:
server3 ansible_host=192.168.0.3 ansible_host: 192.168.0.1
server4 ansible_host=192.168.0.4 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: # Add your own groups here. Hosts can be added to multiple groups like so:
# [anothergroup] # anothergroup:
# server[1:3] # server[1:3]:
# anotherserver ansible_host=192.168.0.10 # anotherserver:
# ansible_host: 192.168.0.10