RedHat EX407 Exam
Red Hat Certified Specialist in Ansible Automation exam (Page 4 )

Updated On: 12-Jan-2026

Which subcommand of ansible-galaxy makes a role available for use from galaxy?

  1. create
  2. pull
  3. init
  4. install

Answer(s): D

Explanation:

The install subcommand will pull a role from galaxy and make it ready for use on your local system.



Which of the following are sub commands of the ansible-galaxy command? (Choose all that apply.)

  1. find
  2. remove
  3. init
  4. create

Answer(s): B

Explanation:

The command ansible-galaxy remove <role> deletes a role installed on the system. The command
`ansible-galaxy init <role> creates a shell for a new role in $PWD.



Besides galaxy.ansible.com, where else can ansible-galaxy pull roles from?

  1. a standard httpd server
  2. other servers that have Ansible installed
  3. community.ansible.com
  4. github repositories

Answer(s): D

Explanation:

ansible-galaxy may be used to pull roles from a github repo.



What does the -p flag do with the ansible-galaxy command?

  1. Allows the user to provide a role path other than the default to be used when installing a role.
  2. Instructs ansible-galaxy to install the role permanently to persist a reboot.
  3. Allows ansible-galaxy to pull a role down to the local server.
  4. Allows ansible-galaxy to push a role to a target.

Answer(s): A



Where does ansible-galaxy install place roles by default?

  1. $PWD/roles
  2. /etc/ansible/roles
  3. /etc/roles
  4. /usr/share/ansible/roles

Answer(s): B

Explanation:

This is the default location where ansible-galaxy install will attempt to install a role.



Viewing page 4 of 22
Viewing questions 16 - 20 out of 101 questions



Post your Comments and Discuss RedHat EX407 exam prep with other Community members:

Join the EX407 Discussion