Which of the following are valid default locations for Ansible configuration? (Choose all that apply.)
A. etc/ansible/ansible.cfgConsider the following playbook:
# playbook name: /home/ansible/web.yml
-hosts: webservers become: yes
tasks:
-name: edit file 1
lineinfile:
path: /var/www/content.hml line: "{{ text }}" tags:
-content
-name: edit file 2
lineinfile: path: /var/www/index.hml
line: "{{ text }}"
tags:
-web
-name: edit file 3 lineinfile: path: /var/www/etc.hml line: "{{ text }}" tags: - content - misc
Which use of the ansible-playbook command on the provided playbook will result in ONLY editing the file /var/www/index.html?
A. ansible-playbook /home/ansible/web.ymlWhere is Ansible's inventory stored by default?
A. .etc/ansible/hostsIn what format are ansible playbooks written?
A. JSONSIMULATION
Using the Simulation Program, perform the following tasks:
1.
Use an ansible ad-hoc command, check the connectivity of your servers.
2.
Use an ad-hoc ansible command, find the free space of your servers.
3.
Use an ad-hoc ansible command, find out the memory usage of your servers.
4.
Do an ls -l on the targets /var/log/messages file.
5.
Tail the contents of the targets /var/log/messages file.
State whether the following statement is true or false.
You can change the no of forks ansible uses from the /etc/ansible/ansible.cfg file.
A. TrueWhich of these are valid as the first thing in a playbook? (Choose all that apply.)
A. --Which of the following are valid flags for the ansible-playbook command? (Choose all that apply.)
A. --include-tagsWhich of the following are sub commands of the ansible-galaxy command? (Choose all that apply.)
A. findWhat does the -f flag in the ansible command allow you to specify?
A. The playbook file used by ansibleNowadays, 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.