diff --git a/ch2-inventory/student-trungdc/02-nonFQDN.yml b/ch2-inventory/student-trungdc/02-nonFQDN.yml new file mode 100644 index 0000000..fd57342 --- /dev/null +++ b/ch2-inventory/student-trungdc/02-nonFQDN.yml @@ -0,0 +1,10 @@ +all: + hosts: + centos21: + ansible_host: 192.168.100.21 + centos22: + ansible_host: 192.168.100.22 + ubuntu11: + ansible_host: 192.168.100.11 + ubuntu12: + ansible_host: 192.168.100.12 diff --git a/ch2-inventory/student-trungdc/03-hostgroups-children.yml b/ch2-inventory/student-trungdc/03-hostgroups-children.yml new file mode 100644 index 0000000..ed750b5 --- /dev/null +++ b/ch2-inventory/student-trungdc/03-hostgroups-children.yml @@ -0,0 +1,18 @@ +all: + children: + linux: + children: + centos: + hosts: + centos21: + ansible_host: 192.168.100.21 + centos22: + ansible_host: 192.168.100.22 + ubuntu: + hosts: + ubuntu11: + ansible_host: 192.168.100.11 + ubuntu12: + ansible_host: 192.168.100.12 + hosts: + fakehost.local diff --git a/ch2-inventory/student-trungdc/04-hostvars.yml b/ch2-inventory/student-trungdc/04-hostvars.yml new file mode 100644 index 0000000..2cf8c58 --- /dev/null +++ b/ch2-inventory/student-trungdc/04-hostvars.yml @@ -0,0 +1,23 @@ +all: + children: + linux: + children: + centos: + hosts: + centos21: + ansible_host: 192.168.100.21 + foo: bar1 + centos22: + ansible_host: 192.168.100.22 + foo: bar1 + ubuntu: + hosts: + ubuntu11: + ansible_host: 192.168.100.11 + foo: bar + ubuntu12: + ansible_host: 192.168.100.12 + foo: bar2 + hosts: + fakehost.local: + foo: bar3