RedHat Red Hat Certified Specialist in Ansible Automation exam EX407 Question # 1 Topic 1 Discussion

RedHat Red Hat Certified Specialist in Ansible Automation exam EX407 Question # 1 Topic 1 Discussion

EX407 Exam Topic 1 Question 1 Discussion:
Question #: 1
Topic #: 1

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.


Get Premium EX407 Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.