| Exam Code/Number: | EX447Join the discussion |
| Exam Name: | Red Hat Certified Specialist in Advanced Automation: Ansible Best Practices |
| Certification: | RedHat |
| Question Number: | 26 |
| Publish Date: | Sep 14, 2026 |
|
Rating
100%
|
|
Create a file calledpackages.yml in/home/sandy/ansibleto install some packages for the following hosts. On dev, prod and webservers install packages httpd, mod_ssl, and mariadb. On dev only install the development tools package. Also, on dev host update all the packages tothe latest.

Create a file calledadhoc.shin/home/sandy/ansiblewhich will use adhoc commands to set up anew repository.
The name of the repo will be 'EPEL' the description 'RHEL8' the baseurl is'https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rmp'there is no gpgcheck, but you should enable the repo.
* You should be able to use an bash script using adhoc commands to enable repos. Depending on your lab setup, you may need to make this repo "state=absent" after you pass this task.
Create a file calledrequirements.ymlin/home/sandy/ansible/rolesa file calledrole.yml in
/home/sandy/ansible/.Thehaproxy-roleshould be used on the host. And when you curl
http://node3.example.comit should display "Welcome tonode4.example.com" and when you curl again
"Welcome tonode5.example.com" The

Create a playbook called regulartasks.yml which has the system that append the date to /root/datefile every day at noon. Name is job 'datejob'

Jan 29, 2023
Jun 22, 2022