<< Prev Question Next Question >>

Question 17/44

Install and configure ansible
User sandy has been created on your control node with the appropriate permissions already, do not change or modify ssh keys. Install the necessary packages to run ansible on the control node. Configure ansible.cfg to be in folder /home/sandy/ansible/ansible.cfg and configure to access remote machines via the sandy user. All roles should be in the path /home/sandy/ansible/roles. The inventory path should be in
/home/sandy/ansible/invenlory.
You will have access to 5 nodes.
node1.example.com
node2.example.com
node3.example.com
node4.example.com
node5.example.com
Configure these nodes to be in an inventory file where node I is a member of group dev. nodc2 is a member of group test, node3 is a member of group proxy, nodc4 and node 5 are members of group prod. Also, prod is a member of group webservers.

LEAVE A REPLY

Your email address will not be published. Required fields are marked *

Question List (44q)
Question 1: Which of the following are Ansible modules? (Choose all that...
Question 2: Create a playbook /home/bob /ansible/motd.yml that runs on a...
Question 3: State whether the following statement is true or false. Ther...
Question 4: Which flags must be accepted as input for a dynamic inventor...
Question 5: Create a file called requirements.yml in /home/sandy/ansible...
Question 6: Create a playbook /home/bob/ansible/timesync.yml that runs o...
Question 7: What command is used to run a playbook?...
Question 8: Create a playbook called timesvnc.yml in /home/sandy/ansible...
Question 9: What is the primary difference between the shell and command...
Question 10: State whether the following statement is true or false. The ...
Question 11: Create a playbook that changes the default target on all nod...
Question 12: State whether the following statement is true or false. Ansi...
Question 13: Where is the first place Ansible checks for a role definitio...
Question 14: State whether the following statement is true or false. A te...
Question 15: Which is the default inventory file used by Ansible?...
Question 16: What character is used to denote use of a jinja filter on an...
Question 17: Install and configure ansible User sandy has been created on...
Question 18: Which of these are valid as the first thing in a playbook? (...
Question 19: Which of the following are sub commands of the ansible-galax...
Question 20: Which of the following is a good use case for an ad-hoc comm...
Question 21: What does the -a flag allow you to specify?...
Question 22: What keyword stores a command's output into a variable?...
Question 23: Create a role called sample-apache and store it in /home/bob...
Question 24: Templates have access to variables scoped at which of the fo...
Question 25: In what format are ansible playbooks written?...
Question 26: What does the lineinfile module do?...
Question 27: What special character is used to designate that you are pas...
Question 28: Create an ansible vault password file called lock.yml with t...
Question 29: Using the Simulation Program, perform the following tasks: A...
Question 30: How is a role name set?
Question 31: Observe the details of the following dynamic inventory file....
Question 32: Which line instructs ansible to install httpd?...
Question 33: Which of the following are valid ways to populate an Ansible...
Question 34: What file should you look at first when installing tower?...
Question 35: How does a user Access Ansible Tower once it is installed?...
Question 36: Which of the following are valid flags for the ansible-playb...
Question 37: Templates must be written in what language?...
Question 38: Which command will allow you to collect all facts for the sp...
Question 39: How are facts collected? (Choose all that apply.)...
Question 40: Consider the following playbook: # playbook name: /home/ansi...
Question 41: Where is Ansible's inventory stored by default?...
1 commentQuestion 42: Which keywords will cause a role to be applied in a playbook...
Question 43: State whether the following statement is true or false. Will...
Question 44: Consider the following playbook. --- - hosts: local become: ...