Ansible Quiz
1. Ansible acquired by
Answer: Red Hat
2. Which configuration management software is Agentless?
Answer: Ansible
3. Design goals of Ansible include
Answer: all
4. Ansible can deploy to virtualization and cloud environments, Including
Answer: all
5. Ansible is
Answer: all
6. Which of the following is a valid YAML syntax?
Answer: path: F:\test
7. YAML uses tabs for indentation, True or false?
Answer: FALSE
8. Which module can be used to copy files from remote machine to control machine?
Answer: fetch
9. Which one is not a valid value of state argument of "file" module?
Answer: folder
10. Where is Inventory file located by default?
Answer: /etc/ansible/hosts
11. Which command tells ansible to run the playbook on all the hosts except host1?
Answer: ansible-playbook playbooks/PLAYBOOK_NAME.yml --limit 'all:!host1'
12. If you do not need any facts from the host, what command would you use?
Answer: both gather_facts: no or gather_facts: False
13. Ansible modules will apply changes everytime you run Playbook.
Answer:FALSE
14. Which module copies dynamically generated file from control machine to target hosts?
Answer:template
15. Modules are temporarily stored in the nodes and communicate with the control machine through a ______ protocol over the standard output.
Answer: JSON
16. Which Ansible module is used to manage docker services and containers.
Answer: docker_service
17. Which module can be used to force a handler to run in between two tasks?
Answer:meta
18. Which module will you use to create a directory?
Answer: file
19. You write comments in Jinja2 as:
Answer: {# #}
20. What module can be used to stop a playbook execution for some time?
Answer: pause
21. Handler run only once even if you run the playbook multiple times.
Answer: TRUE
22. Using which module can you see the list of all the ansible variables?
Answer: setup
23. Which command do you use to do a syntax check on your playbook?
Answer: ansible-playbook <playbook_name> --syntax-check
24. Which module you can use to install Apache in Ubuntu OS?
Answer: apt
25. A Playbook starts with three dots …
Answer: FALSE
26. You cannot define multiple conditions
Answer: FALSE
27. Which of these will loop through items randomly?
Answer: with_random_choice
28. ansible.cfg should be present in
Answer: /etc/ansible
29. what is the default forks value in configuration file?
Answer: 5
30. How can you reduce the number of SSH connections required?
Answer: pipelining
31. How to define the number of parallel processes while communicating to remote hosts?
Answer: forks
32. You can activate your privilege escalations using which settings?
Answer:become=true
33. Nodes are managed by a controlling machine over ____________.
Answer: SSH
34. To store sensitive information you can use ansible-vaulte.
Answer: TRUE
35. Ansible can work as a push automated deployment system and as well as a pull automated deployment system?
Answer: TRUE