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
7 months agoWillow
8 months agoRene
8 months agoBrianne
8 months agoNaomi
8 months agoToshia
9 months agoEmogene
9 months agoBuffy
9 months agoSelma
9 months agoLavina
9 months agoTy
9 months agoDeane
9 months agoAdaline
9 months agoColetta
10 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