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
6 months agoWillow
6 months agoRene
6 months agoBrianne
7 months agoNaomi
7 months agoToshia
7 months agoEmogene
7 months agoBuffy
7 months agoSelma
8 months agoLavina
8 months agoTy
8 months agoDeane
8 months agoAdaline
8 months agoColetta
8 months agoAvery
1 year agoArtie
12 months agoTy
1 year agoSheron
1 year agoStephane
1 year agoShawnda
12 months agoTamala
12 months 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