EX407

Practice EX407 Exam

Is it difficult for you to decide to purchase RedHat EX407 exam dumps questions? CertQueen provides FREE online Red Hat Certified Specialist in Ansible Automation exam EX407 exam questions below, and you can test your EX407 skills first, and then decide whether to buy the full version or not. We promise you get the following advantages after purchasing our EX407 exam dumps questions.
1.Free update in ONE year from the date of your purchase.
2.Full payment fee refund if you fail EX407 exam with the dumps

 

 Full EX407 Exam Dump Here

Latest EX407 Exam Dumps Questions

The dumps for EX407 exam was last updated on Jun 25,2025 .

Viewing page 1 out of 2 pages.

Viewing questions 1 out of 10 questions

Question#1

CORRECT TEXT
Create a jinja template in /home/sandy/ansible/ and name it hosts.j2. Edit this file so it looks like the one below. The order of the nodes doesn't matter. Then create a playbook in /home/sandy/ansiblecalledhosts.ymland install the template on dev node at /root/myhosts

RedHat-EX4077_2

A. Solution as:

RedHat-EX4077_3

Question#2

CORRECT TEXT
Create a role called sample-apache and store it in /home/bob/ansible/roles.
The role should satisfy the following requirements:
*In the role, install and enable httpd. Also enable the firewall to allow http. Also run the template
*index.html.j2 and make sure this runs Create a template index.html.j2 that displays "Welcome to the server HOSTNAME"
In a play called apache.yml in /home/bob/ansible/ run the sample-apache role.

A. /home/sandy/ansible/apache.yml

RedHat-EX4075_1

/home/sandy/ansible/roles/sample-apache/tasks/main.yml

RedHat-EX4076_2

/home/sandy/ansible/roles/sample-apache/templates/index.html.j2

RedHat-EX4076_1

In /home/sandy/ansible/roles/sample-apache/handlers/main.yml

RedHat-EX4076_4

Question#3

CORRECT TEXT
Create a file called packages.yml in/home/sandy/ansibleto install somepackages 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 to the latest.

A. Solution as:

RedHat-EX4074_1

** NOTE 1 a more acceptable answer is likely 'present' since it's not asking to install the latest
state: present
** NOTE 2 need to update the development node
- name: update all packages on developmentnode yum:
name: '*'
state: latest

Question#4

CORRECT TEXT
Create a file called specs.empty in home/bob/ansible on the local machine as follows:
HOST=
MEMORY=
BIOS=
VDA_DISK_SIZE=
VDB_DISK_SIZE=
Create the playbook /home/bob/ansible/specs.yml which copies specs.empty to all remote nodes' path/root/specs.txt. Using the specs.yml playbook then edit specs.txt on the remote machines to reflect the appropriate ansible facts.

A. Solution as:

RedHat-EX4073_2


RedHat-EX4073_1

Question#5

CORRECT TEXT
Create a file called mysecret.yml on the control host using ansible vault in home/bob/ansible. Set the password to 'notasafepass' and inside the file create a variable called dev_pass with the value of devops. Save the file. Then go back in the file and change dev_pass value to devops123. Then change the vault password of mysecret.yml to verysafepass

A. ansible-vault create lock.yml
New Vault Password: reallysafepw
Confirm: reallysafepw

RedHat-EX4072_1

Exam Code: EX407         Q & A: 23 Q&As         Updated:  Jun 25,2025

 

 Full EX407 Exam Dumps Here