Which command will allow you to collect all facts for the specific host group 'labmachines'?
A. ansible -c setup labmachines
B. ansible-gather-facts labmachines
C. ansible labmachines -m facts
D. ansible labmachines -m setup
Which variable name is invalid?
A. tomcat_inst8_port
B. _tomcatdefaultport
C. tomcat8port
D. tomcat_port
Which of the following are Ansible modules? (Choose all that apply.)
A. get_dnshostname
B. setup
C. yum
D. ping
Consider the following playbook.
-hosts: web1 become: yes
tasks:
-
name: use yum yum: name=httpd
state=latest
-
name: use service service: name=httpd state=started enabled=yes
-hosts: media1 become: yes
tasks:
-name: use service service: name=mariadb state=started
when:
-ansible_hostname == "web1"
-name: use service service: name=firewalld state=stopped
What service is started on the host media1?
A. mariadb
B. httpd
C. firewalld
D. No service is started on media1.
What module is used to deploy a template?
A. File
B. Copy
C. Template
D. Deploy
What is a typical use case for an Ansible Template?
A. Managing remote system configuration files
B. Defining a host group
C. Installing remote Ansible installations
D. Running remote commands
Which of the following are valid parameters of the template module? (Choose all that apply.)
A. state
B. dest
C. validate
D. .name
Templates must be written in what language?
A. XML
B. Ruby
C. Jinja2
D. INI
Templates have access to variables scoped at which of the following levels? (Choose all that apply.)
A. Hostgroup targeted by current play
B. Ansible Facts
C. Variables defined within the current play
D. Any host variables defined in inventory
What does the when keyword do?
A. There is no when keyword
B. Allows a task to be conditional
C. Allows a play to be conditional
D. Allows a play to be scheduled
Nowadays, the certification exams become more and more important and required by more and more enterprises when applying for a job. But how to prepare for the exam effectively? How to prepare for the exam in a short time with less efforts? How to get a ideal result and how to find the most reliable resources? Here on Vcedump.com, you will find all the answers. Vcedump.com provide not only Red Hat exam questions, answers and explanations but also complete assistance on your exam preparation and certification application. If you are confused on your EX407 exam preparations and Red Hat certification application, do not hesitate to visit our Vcedump.com to find your solutions here.