Create a role called sample-apache in /home/sandy/ansible/roles that enables and starts httpd, enables and starts the firewall and allows the webserver service. Create a template called index.html.j2 which creates and serves a message from /var/www/html/index.html Whenever the content of the file changes, restart the webserver service.
Welcome to [FQDN] on [IP]
Replace the FQDN with the fully qualified domain name and IP with the ip address of the node using ansible facts. Lastly, create a playbook in /home/sandy/ansible/ called apache.yml and use the role to serve the index file on webserver hosts.
Carmela
9 months agoWillow
10 months agoRene
10 months agoBrianne
10 months agoNaomi
10 months agoToshia
11 months agoEmogene
11 months agoBuffy
11 months agoSelma
11 months agoLavina
11 months agoTy
11 months agoDeane
11 months agoAdaline
11 months agoColetta
12 months agoAvery
1 year agoArtie
1 year agoTy
1 year agoSheron
1 year agoStephane
1 year agoShawnda
1 year agoTamala
1 year agoPeggy
1 year agoLevi
1 year agoWilliam
1 year agoTrina
1 year agoBrent
1 year agoXuan
1 year agoShelton
1 year agoDestiny
1 year agoShanda
1 year ago