Consider the provided dictionary variable definition:
drives: name: hd1 type: physical size: 1G
Which of the following are valid ways to retrieve data from this dictionary? (Choose all that apply.)
A. {{ drives[`type'] }}State whether the following statement is true or false.
Will this command use servers in a local inventory called invent.local?
ansible all -m ping -i invent.local
A. TrueYou are taking over for someone while they are away on leave. You need to run a playbook against over 600 servers. When you run the playbook you notice that only 10 servers are worked on at any one time. How would you fix this so that you can have 50 servers worked on at the same time?
A. Edit the /etc/ansible/ansible.cfg file and adjust the 'poll_interval' parameter.Create a playbook called issue.yml in /home/sandy/ansible which changes the file /etc/issue on all managed nodes: If host is a member of (lev then write "Development" If host is a member of test then write "Test" If host is a member of prod then write "Production"
Correct Answer. Check the answer in explanationWhat switch needs to be added to prevent the following command from failing: ansible all -m user -a "name=jsmith state=present"
A. -bObserve the details of the following dynamic inventory file. $ ls -l dynamic.py -rw-rw-r--. 1 user user 1928 Mar 30 08:21 dynamic.py Why will this inventory file cause the ansible command to fail?
A. Ansible cannot use python scripts as inventories.Install and configure ansible
User bob has been created on your control node. Give him the appropriate permissions on thecontrol node. Install the necessary packages to run ansible on the control node.
Create a configuration file /home/bob/ansible/ansible.cfg to meet the following requirements:
1.
The roles path should include /home/bob/ansible/roles, as well as any otherpath that may be required for the course of the sample exam.
2.
The inventory file path is /home/bob/ansible/inventory.
3.
Ansible should be able to manage 10 hosts at a single time.
4.
Ansible should connect to all managed nodes using the bobuser. Create an inventory file for the following five nodes:
1.
node1.example.com
2.
node2.example.com
3.
node3.example.com
4.
node4.example.com
5.
node5.example.com
Configure these nodes to be in an inventory file where node1 is a member of group dev. nodc2 is a member of group test, nodc3 is a member of group proxy, nodc4 and node 5 are members of group prod. Also, prod is a member of group webservers.
Correct Answer. Check the answer in explanationWhich keywords are valid? (Choose all that apply.)
A. neverWhat is the url for the official Ansible online documentation?
A. docs.ansible.comExamine the following inventory excerpt file named /home/user/ansible/inventory. [dbservers] db1.example.com Which of the following files does Ansible check for variables related to that inventory? (Choose all that apply.)
A. /home/user/ansible/dbserversNowadays, 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.