Free EX407 Exam Braindumps (page: 9)

Page 8 of 26

What special character is used to designate that you are passing a variable file to a play using the -e flag?

  1. The plugs sign: “+”
  2. There is no special character required.
  3. The at symbol: “@”
  4. The pipe: “|”

Answer(s): C

Explanation:

The @ symbol will instruct Ansible to find the provided file and parse the file as a variable file.



Which command will allow you to collect all facts for the specific host group 'labmachines'?

  1. ansible -c setup labmachines
  2. ansible-gather-facts labmachines
  3. ansible labmachines -m facts
  4. ansible labmachines -m setup

Answer(s): D

Explanation:

This command specifies the correct inventory and uses the setup module which gathers facts for target hosts.



Which variable name is invalid?

  1. tomcat_inst8_port
  2. _tomcatdefaultport
  3. tomcat8port
  4. tomcat_port

Answer(s): B



Which of the following are Ansible modules? (Choose all that apply.)

  1. get_dnshostname
  2. setup
  3. yum
  4. ping

Answer(s): B,C,D

Explanation:

yum: this module was covered in the lesson and can be found in Ansible documentation.






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

EX407 Discussions & Posts