Generate a hosts file:
* Download an initial template file hosts.j2 from http://classroom.example.com/
hosts.j2 to
/home/admin/ansible/ Complete the template so that it can be used to generate a file
with a
line for each inventory host in the same format as /etc/hosts:
172.25.250.9 workstation.lab.example.com workstation
* Create a playbook called gen_hosts.yml that uses this template to generate the file
/etc/myhosts on hosts in the dev host group.
* When completed, the file /etc/myhosts on hosts in the dev host group should have a
line for
each managed host:
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
172.25.250.10 serevra.lab.example.com servera
172.25.250.11 serevrb.lab.example.com serverb
172.25.250.12 serevrc.lab.example.com serverc
172.25.250.13 serevrd.lab.example.com serverd
-----------------------------------------------------------------
while practising you to create these file hear. But in exam have to download as per
questation.
hosts.j2 file consists.
localhost localhost.localdomain localhost4 localhost4.localdomain4
::1
localhost localhost.localdomain localhost6 localhost6.localdomain6
-------------------------------------------------------------------
Louis
2 months agoValentin
2 months agoJamika
3 months agoPolly
3 months agoXochitl
3 months agoDan
3 months agoRebecka
4 months agoNada
4 months agoOrville
4 months agoBeckie
4 months agoWillie
4 months agoCory
4 months agoElza
5 months agoJeannine
10 months agoMarya
8 months agoBilly
8 months agoLucia
9 months agoFabiola
10 months agoMalinda
9 months agoEleonore
9 months agoNada
10 months agoTegan
10 months agoBette
9 months agoLaurel
9 months agoAmie
9 months agoWynell
10 months agoGaston
10 months agoDwight
9 months agoBelen
10 months agoIzetta
11 months agoLavina
9 months agoMalcolm
9 months agoCarmen
10 months agoTien
10 months agoLashon
11 months agoKate
11 months agoLashon
11 months ago