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.
Avery
26 days agoTy
15 days agoSheron
20 days agoStephane
1 months agoTamala
2 days agoPeggy
26 days agoLevi
1 months agoWilliam
1 months agoTrina
2 months agoBrent
2 months agoXuan
1 months agoShelton
1 months agoDestiny
2 months agoShanda
2 months ago