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