0
0

Compare commits

...

2 Commits

Author SHA1 Message Date
eabadfcb28 added ansible.cfg for hosts file 2023-01-19 21:32:55 +01:00
c06d2e9197 transformed hosts file into yaml file 2023-01-19 21:23:39 +01:00
2 changed files with 16 additions and 8 deletions

2
ansible.cfg Normal file
View File

@@ -0,0 +1,2 @@
[defaults]
inventory=hosts.yml

View File

@@ -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