Which command will allow you to collect all facts for the specific host group 'labmachines'?
A. ansible -c setup labmachinesWhich module returns Ansible facts?
A. The facts moduleCreate a playbook /home/bob /ansible/motd.yml that runs on all inventory hosts and docs the following:
1.
The playbook should replaee any existing content of/etc/motd in the following text.
2.
Use ansible facts to display the FQDN of each host
3.
On hosts in the dev host group the line should be "Welcome to Dev Server FQDN".
4.
On hosts in the webserver host group the line should be "Welcome to Apache Server FQDN".
5.
On hosts in the database host group the line should be "Welcome to MySQL Server FQDN".
Correct Answer. Check the answer in explanationWhich keywords will cause a role to be applied in a playbook? (Choose all that apply.)
A. use_role
Create a playbook /home/bob/ansible/timesync.yml that runs on hosts in the webservers host group and does the following:
1.
Uses the timesync RHEL system role.
2.
Sets the ntp server to 0.uk.pool.ntp.org
3.
Sets the timezone to UTC
Correct Answer. Check the answer in explanationHow is Ansible Tower installed on your system?
A. It is installed with Ansible core.Which of the following is a configuration file for Ansible Tower?
A. /etc/ansible/tower.pyConsider the following play excerpt:
-name: deploy app config template: src: app.xml.j2 dest: /etc/app.xml notify:
-
restart memcached
-
restart apache
-name: deploy httpd config
template:
src: httpd.conf.j2
dest: /etc/httpd/conf/httpd.conf
notify:
-restart apache
-name: deploy httpd config
template:
src: site.conf.j2
dest: /etc/httpd/conf/site.conf
notify:
-restart apache
Presuming all of the listed tasks in the play change the files they act on and the handler is correctly defined in another file, how many times is the "restart apache" handler ran?
A. 3State whether the following statement is true or false.
If you create your own ansible facts file, it can be executable.
A. TrueWhich flags must be accepted as input for a dynamic inventory script?
A. Only --listNowadays, 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.