Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question...
Transcript of Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question...
![Page 1: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/1.jpg)
Red Hat Certified Specialist in Ansible Automation (EX407 Prep Guide
Flash Cards
![Page 2: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/2.jpg)
Question 1 True or False: A host in an inventory may only be part of one host group.
![Page 3: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/3.jpg)
Answer: False. A host can be in any number of groups
![Page 4: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/4.jpg)
Question 2 What file formats are valid for Ansible custom fact files?
![Page 5: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/5.jpg)
Answer: INI,JSON, or an executable that return JSON.
![Page 6: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/6.jpg)
Question 3 Will the following ansible command fail:
‘ansible all -a "mkdir/tmp/testfile" ’
![Page 7: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/7.jpg)
Answer:
No! When not used with the module flag, the argument flag will simple run commands supplied via the argument flag directly against a target hosts (as long as they are valid commands).
![Page 8: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/8.jpg)
Question 4 What does max_failure_percentage set a threshold for?
![Page 9: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/9.jpg)
Answer: The maximum number of host failures that ansible will allow before stopping the play
![Page 10: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/10.jpg)
Question 5 What module would you use to create a new system user?
![Page 11: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/11.jpg)
Answer: The user module.
![Page 13: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/13.jpg)
Answer: web01.example.com web02.example.com web03.example.com
![Page 14: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/14.jpg)
Question 7 True or False: Parallelism allows Ansible to act on multiple hosts simultaneously.
![Page 15: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/15.jpg)
Answer: True! Parralellism is accomplished in Ansible by forking the Ansible process which allows many copies of Ansible to act at one time against many hosts.
![Page 16: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/16.jpg)
Question 8 What keyword makes ansible continue a play execution despite a task failure?
![Page 17: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/17.jpg)
Answer: ignore_errors: yes
![Page 18: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/18.jpg)
Question 9 True or false: ‘ansible-doc - - list’ is a quick way to a module listing on a system.
![Page 19: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/19.jpg)
Answer: False. ‘Ansible-doc - -list’ is a rather slow to run.
![Page 20: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/20.jpg)
Question 10 What is the use of a machine credential in Ansible Tower?
![Page 21: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/21.jpg)
Answer: The machine credential is used to supply a username and password (or ssh key) to access remote systems for use with ansible.
![Page 22: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/22.jpg)
Question 11 Ansible Tower provides what kind of interface to Ansible?
![Page 23: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/23.jpg)
Answer: A web interface!
![Page 24: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/24.jpg)
Question 12 How can you make a task conditional on a binary expression?
![Page 25: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/25.jpg)
Answer: The ‘when’ keyword.
![Page 26: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/26.jpg)
Question 13 How would you install the galaxy role named ‘awesome’ published by the user ‘stallman’?
![Page 27: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/27.jpg)
Answer: ‘ansible-galaxy install stallman.awesome’
![Page 28: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/28.jpg)
Question 14 True or false: Ansible always runs 15% more forks than the number of hosts it is executing against.
![Page 29: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/29.jpg)
Answer: False. Ansible always run the minimum number of forks it requires.
![Page 30: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/30.jpg)
Question 15 Not considering command line defined variables, what variable definition takes the highest precedence in an ansible role?
![Page 31: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/31.jpg)
Answer: Variables defined in the ‘vars’ directory of a role.
![Page 32: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/32.jpg)
Question 16 What two ansible-vault sub-commands allow you to edit an already encrypted file and see the contents of an encrypted file?
![Page 33: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/33.jpg)
Answer: ‘Edit’ and ‘view’, respectively.
![Page 34: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/34.jpg)
Question 17 What flag allows you provide a non-default role path?
![Page 35: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/35.jpg)
Answer: The ‘-p’ flag.
![Page 36: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/36.jpg)
Question 18 What command is used to run ad-hoc ansible commands?
![Page 37: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/37.jpg)
Answer: ‘ansible’
![Page 38: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/38.jpg)
Question 19 If you know Ansible is retrieving variables from a file called ‘./host_vars/Johnny’ , what host must exists in the inventory?
![Page 39: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/39.jpg)
Answer: There must be a host named Johnny. Ansible checks ‘host_vars/‘ for files by host names within the inventory.
![Page 40: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/40.jpg)
Question 20 How does Ansible group a common set of tasks, variables, files, and handlers?
![Page 41: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/41.jpg)
Answer: With Ansible Roles!
![Page 42: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/42.jpg)
Question 21 Which Ansible variable type allows for key-value pairs?
![Page 43: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/43.jpg)
Answer: A dictionary variable
![Page 44: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/44.jpg)
Question 22 True or False: By default, playbooks gather facts on execution.
![Page 45: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/45.jpg)
Answer: True! Though you can disable fact gathering
![Page 46: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/46.jpg)
Question 23 What is the module index?
![Page 47: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/47.jpg)
Answer: The comprehensive online listing of available ansible modules.
![Page 48: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/48.jpg)
Question 24 True or False: Handles and variables are shared between all roles on the system.
![Page 49: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/49.jpg)
Answer: True.
![Page 50: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/50.jpg)
Question 25 What ‘ansible-vault’ command will encrypt a file named
"classified" ?
![Page 51: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/51.jpg)
Answer: ‘ansible-vault encrypt classified’
![Page 52: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/52.jpg)
Question 26 True or False: The ansible-galaxy command can only pull roles from galaxy.ansible.com.
![Page 53: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/53.jpg)
Answer: False! The command can use any GitHub repo that is has credentials for.
![Page 54: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/54.jpg)
Question 27 True or False: ‘ad-hoc’ commands may be run from a tower project.
![Page 55: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/55.jpg)
Answer: False! There is not an option to run an ‘ad-hoc’ command from the project menu.
![Page 56: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/56.jpg)
Question 28 True or False: It is not possible to provide more than one vault password when executing an Ansible playbook.
![Page 57: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/57.jpg)
Answer: False. As of Ansible 2.4, the vault-id feature allows for multiple passwords to be used in a single playbook execution.
![Page 58: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/58.jpg)
Question 29 What is the data format returned by Ansible modules?
![Page 59: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/59.jpg)
Answer: JSON
![Page 60: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/60.jpg)
Question 30 True or False: Ansible variables may be defined in external files.
![Page 61: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/61.jpg)
Answer: True! But the file must be included using either the vars_file keyword or through a command line switch.
![Page 62: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/62.jpg)
Question 31 What is the command to return information on the htpasswd module?
![Page 63: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/63.jpg)
Answer: ‘Ansible-doc htpasswd’
![Page 64: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/64.jpg)
Question 32 What keyword is used to pass parameters to an Ansible role?
![Page 65: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/65.jpg)
Answer: ‘vars:’
![Page 66: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/66.jpg)
Question 33 What does the keyword ‘changed_when’ do?
![Page 67: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/67.jpg)
Answer: It allows you to have Ansible mark a certain task result "changed" presuming the accompanying conditional returns true.
![Page 68: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/68.jpg)
Question 34 What directory does Ansible Tower use to look for project artifacts by default when configured to use a manual project?
![Page 69: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/69.jpg)
Answer: The directory set in PROJECTS_ROOT.
![Page 70: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/70.jpg)
Question 35 What is the best way to manage a config file with Ansible?
![Page 71: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/71.jpg)
Answer: Ansible Template
![Page 72: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/72.jpg)
Question 36 What is the processing langue for ansible templates?
![Page 73: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/73.jpg)
Answer: Jinja2
![Page 74: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/74.jpg)
Question 37 If you know Ansible is retrieving variables from a file called ‘./group_vars/webservers’ , what group must exist in the inventory?
![Page 75: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/75.jpg)
Answer: ‘Webservers’ , because the files for group_vars must be named after the group.
![Page 76: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/76.jpg)
Question 38 What facts are contained in the ansible_local variable?
![Page 77: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/77.jpg)
Answer: Custom facts defined on remote systems using facts.d.
![Page 78: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/78.jpg)
Question 39 What are the three flags that allow you to specify a password that will allow ansible to successfully use ansible-vault encrypted files?
![Page 79: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/79.jpg)
Answer: ‘ask-vault-password’ , ‘ask-vault-file’ , and ‘vault-id’
![Page 80: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/80.jpg)
Question 40 What flag does the ansible-playbook command take that will cause the command to only run against a specified host?
![Page 81: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/81.jpg)
Answer: The ‘- -limit’ flag.
![Page 82: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/82.jpg)
Question 41 What makes an Ansible inventory dynamic?
![Page 83: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/83.jpg)
Answer: It is an executable file! Script or binary)
![Page 84: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/84.jpg)
Question 42 What are the two required parameters for the template module?
![Page 85: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/85.jpg)
Answer: I -src -dest
![Page 86: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/86.jpg)
Question 43 What directories may be used by an Ansible role?
![Page 87: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/87.jpg)
Answer: I -tasks -handlers -vars -defaults -files -templates -meta.
![Page 88: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/88.jpg)
Question 44 What Ansible module can write to stdout and stderr on the ansible control node during play execution?
![Page 89: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/89.jpg)
Answer: The debug module.
![Page 90: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/90.jpg)
Question 45 What three keywords work together to provide "try / catch" style error handling?
![Page 91: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/91.jpg)
Answer: I -block -rescue -always
![Page 92: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/92.jpg)
Question 46 What types of items may be in an Ansible inventory?
![Page 93: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/93.jpg)
Answer: Hosts, groups, and variable declarations.
![Page 94: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/94.jpg)
Question 47 What do the terms ‘install’, ‘init’ , ‘remove, and ‘search’ have in common when it comes to Ansible?
![Page 95: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/95.jpg)
Answer: They are all sub commands of the ansible-galaxy command.
![Page 96: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/96.jpg)
Question 48 What format must be returned by an Ansible dynamic inventory?
![Page 97: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/97.jpg)
Answer: JSON
![Page 98: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/98.jpg)
Question 49 How can you manipulate text output from Ansible variables?
![Page 99: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/99.jpg)
Answer: Using a Jinja filter.
![Page 100: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/100.jpg)
Question 50 True or False: Ansible Tower is installed with Ansible Core.
![Page 101: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/101.jpg)
Answer: False. Ansible Tower is only available stand-alone.
![Page 102: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/102.jpg)
Question 51 What keyword must be set to true in order to allow a role to be applied more than once within a play?
![Page 103: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/103.jpg)
Answer: ‘allow_duplicates’
![Page 104: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/104.jpg)
Question 52 Which flag is used to specify the arguments that pass to a module for the ansible command?
![Page 105: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/105.jpg)
Answer: ‘-a’
![Page 106: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/106.jpg)
Question 53 What is the script name that kicks off the Ansible Tower install?
![Page 107: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/107.jpg)
Answer: ‘setup.sh’
![Page 108: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/108.jpg)
Question 54 Is it possible to use a directory as an Ansible inventory?
![Page 109: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/109.jpg)
Answer: Yes! If you provide a directory as your inventory Ansible will use all of the valid inventories it finds in that directory (static or dynamic).
![Page 110: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/110.jpg)
Question 55 What Ansible modules allow one to insert text into an existing file?
![Page 111: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/111.jpg)
Answer: ‘Lineinfile’
![Page 112: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/112.jpg)
Question 56 What does the template module do?
![Page 113: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/113.jpg)
Answer: Deploys ansible templates.
![Page 114: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/114.jpg)
Question 57 What are the two ways you can supply a vault password using ‘- -vault-id’?
![Page 115: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/115.jpg)
Answer: You may specify a password file using ‘label@fileName’ or you may have ansible prom using ‘label@prompt’
![Page 116: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/116.jpg)
Question 58 What inventory file does the following command use: ‘ansible webservers -m setup’
![Page 117: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/117.jpg)
Answer: The default inventory file
![Page 118: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/118.jpg)
Question 59 What keyword allows you to batch play execution by hosts?
![Page 119: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/119.jpg)
Answer: The serial keyword.
![Page 120: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/120.jpg)
Question 60 What ansible-vault sub-command allows you to encrypt a single string?
![Page 121: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/121.jpg)
Answer: Encrypt-string
![Page 122: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/122.jpg)
Question 61 Using source control is the preferred way to set up what Ansible Tower artifact?
![Page 123: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/123.jpg)
Answer: A Tower project.
![Page 124: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/124.jpg)
Question 62 What flags must be handled by the dynamic inventory in Ansible?
![Page 125: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/125.jpg)
Answer: - - list - - host <HOSTNAME>
![Page 126: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/126.jpg)
Question 63 Ansible Variable names should only be made of what?
![Page 127: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/127.jpg)
Answer: ‘Letters, number, and underscores.’
![Page 128: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/128.jpg)
Question 64 With no extra options, how does ansible-doc present output?
![Page 129: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/129.jpg)
Answer: In a less like text viewing application.
![Page 130: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/130.jpg)
Question 65 What is the Ansible module used to validate host connectivity?
![Page 131: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/131.jpg)
Answer: ‘Ping’
![Page 132: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/132.jpg)
Question 66 What does the filter parameter for for the setup module?
![Page 133: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/133.jpg)
Answer: It allows you to filter Ansible facts returned using a regular expression.
![Page 134: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/134.jpg)
Question 67 Which Ansible role directories do not require a main.yml if they are being used?
![Page 135: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/135.jpg)
Answer: ‘Templates’ and ‘files’
![Page 136: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/136.jpg)
Question 68 What Ansible module runs a command against a remote host with no environment set up?
![Page 137: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/137.jpg)
Answer: The command module.
![Page 138: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/138.jpg)
Question 69 This Ansible role directory is primarily used to define role dependencies.
![Page 139: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/139.jpg)
Answer: The ‘meta’ directory.
![Page 140: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/140.jpg)
Question 70 How do you change the name of an Ansible role?
![Page 141: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/141.jpg)
Answer: Rename the directory that defines the role.
![Page 142: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/142.jpg)
Question 71 What is the Ansible command that gathers facts for all servers in the webservers group (assume default inventory file)?
![Page 143: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/143.jpg)
Answer: ‘Ansible webservers -m setup’
![Page 144: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/144.jpg)
Question 72 What are the required parameters for the service module?
![Page 145: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/145.jpg)
Answer: Only a name.
![Page 146: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/146.jpg)
Question 73 What flag sets the fork count for an ansible ‘ad-hoc’ command?
![Page 147: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/147.jpg)
Answer: -f <NUM_FORKS>
![Page 148: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/148.jpg)
Question 74 Where does ansible-galaxy install roles by default?
![Page 149: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/149.jpg)
Answer: /etc/ansible/roles
![Page 150: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/150.jpg)
Question 75 Ansible variable names may only start with what?
![Page 151: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/151.jpg)
Answer: A letter.
![Page 152: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/152.jpg)
Question 76 What Ansible module installs software on Red Hat systems?
![Page 153: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/153.jpg)
Answer: The yum module.
![Page 154: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/154.jpg)
Question 77 True or False: The number of forks will limit how many hosts that a play with serial defined can execute on.
![Page 155: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/155.jpg)
Answer: True. Ansible will never make more than the maximum number of forks, even if serial is defined higher than that number in a play.
![Page 156: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/156.jpg)
Question 78 True or false: Ansible variables may be prompted during play execution.
![Page 157: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/157.jpg)
Answer: True! Using the vars_prompt keyword.
![Page 158: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/158.jpg)
Question 79 What file extension must be used for custom Ansible fact files?
![Page 159: Red Hat Certified Specialist in Ansible Automation (EX407 Prep …... · 2020. 10. 29. · Question 1 True or False: A host in an inventory may only be part of one host group.](https://reader035.fdocuments.in/reader035/viewer/2022071607/61454cab34130627ed50e385/html5/thumbnails/159.jpg)
Answer: .fact