Consider the following playbook.
-hosts: local become: yes
tasks:
-name: create users user: name: "{{item}}" with_items:
-sam
-john
-bob How many times is the user module invoked?
A. 5Besides galaxy.ansible.com, where else can ansible-galaxy pull roles from?
A. a standard httpd serverCreate anansible vault password file called lock.yml with the password reallysafepw in the /home/sandy/ansible directory. In the lock.yml file define two variables. One is pw_dev and the password is 'dev' and the other is pw_mgr and the password is 'mgr' Create a regular file called secret.txt which contains the password for lock.yml.
Correct Answer. Check the answer in explanationWhat is the defaults directory used for within a role?
A. The defaults directory is for defining default values for variables if no other value is provided.How is a role name set?
A. The role name is defined by the directory containing the role.In /home/sandy/ansible/create a playbook called logvol.yml. In the play create a logical volume called Iv0 and make it of size 1500MiB on volume group vgO If there is not enough space in the volume group print a message "Not enough space for logical volume" and then make a 800MiB Iv0 instead. If the volume group still doesn't exist, create a message "Volume group doesn't exist" Create an xfs filesystem on all Iv0 logical volumes. Don't mount the logical volume.
Correct Answer. Check the answer in explanationWhat type of credential is used for accessing system accounts on your remote Linux hosts via SSH in Ansible Tower?
A. SystemState whether the following statement is true or false. A template has a maximum of 10 variables.
A. TrueSIMULATION
Using the Simulation Program, perform the following tasks:
Static Inventories Task:
1.
Add a new group to your default ansible host file. call the group [ec2]
2.
Add a new host to the new group you created.
3.
Add a variable to a new host entry in the /etc/ansible/hosts file. Add the following. localhost http_port=80 maxRequestsPerChild=808
4.
Check to see if maxRequestsPerChild is pulled out with an ad-hoc command.
5.
Create a local host file and put a target group and then a host into it. Then ping it with an ad-hoc command.
What keyword stores a command's output into a variable?
A. registerNowadays, 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.