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
3 months agoWillow
3 months agoRene
3 months agoBrianne
4 months agoNaomi
4 months agoToshia
4 months agoEmogene
4 months agoBuffy
4 months agoSelma
5 months agoLavina
5 months agoTy
5 months agoDeane
5 months agoAdaline
5 months agoColetta
5 months agoAvery
10 months agoArtie
9 months agoTy
9 months agoSheron
9 months agoStephane
10 months agoShawnda
9 months agoTamala
9 months agoPeggy
10 months agoLevi
10 months agoWilliam
10 months agoTrina
10 months agoBrent
10 months agoXuan
10 months agoShelton
10 months agoDestiny
11 months agoShanda
11 months ago