Ansible - Automation Sibelius | Fresco Play
Question 1: Ansible acquired by
Answer: Red Hat
Question 2: Which configuration management software is Agentless?
Answer: Ansible
Question 3: Design goals of Ansible include
Answer: All the options mentioned
Question 4: Ansible can deploy to virtualization and cloud environments, Including
Answer: All the Options
Question 5: Ansible is
Answer: All the options mentioned
Question 6: Which of the following is a valid YAML syntax?
Answer: path: F:\test
Question 7: YAML uses tabs for indentation, True or false?
Answer: False
Question 8: Which module can be used to copy files from remote machine to control machine?
Answer: fetch
Question 9: Which one is not a valid value of state argument of "file" module?
Answer: folder
Question 10: Where is Inventory file located by default?
Answer: /etc/ansible/hosts
Question 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'
Question 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
Question 13: Ansible modules will apply changes everytime you run Playbook.
Answer: False
Question 14: Which module copies dynamically generated file from control machine to target hosts?
Answer: template
Question 15: Identify the order of execution of handlers in the below snippet.
Answer: test-test1-handler_2-handler_3-handler_1
Question 16: Modules are temporarily stored in the nodes and communicate with the control machine through a ______ protocol over the standard output.
Answer: JSON
Question 17: Which Ansible module is used to manage docker services and containers.
Answer: docker_service
Question 18: Which module can be used to force a handler to run in between two tasks?
Answer: meta
Question 19: Which module will you use to create a directory?
Answer: file
Question 20: You write comments in Jinja2 as:
Answer: {# #}
Question 21: What module can be used to stop a playbook execution for some time?
Answer: pause
Question 22: Handler run only once even if you run the playbook multiple times.
Answer: True
Question 23: tasks: - name: test shell: echo "hello" register: a debug: msg="the message is {{ a.stdout }}"
Answer: error
Question 24: Using which module can you see the list of all the ansible variables?
Answer: setup
Question 25: Which command do you use to do a syntax check on your playbook?
Answer: ansible-playbook
Question 26: Which module you can use to install Apache in Ubuntu OS?
Answer: apt
Question 27: A Playbook starts with three dots …
Answer: False
Question 28: You cannot define multiple conditions
Answer: False
Question 29: Which of these will loop through items randomly?
Answer: with_random_choice
Question 30: How do you use variable to apply condition?
Answer: when: score == 3
Question 31: ansible.cfg should be present in
Answer: /etc/ansible
Question 32: what is the default forks value in configuration file?
Answer: 5
Question 33: How can you reduce the number of SSH connections required?
Answer: pipelining
Question 34: How to define the number of parallel processes while communicating to remote hosts?
Answer: forks
Question 35: You can activate your privilege escalations using which settings?
Answer: become=true
Question 36: Nodes are managed by a controlling machine over ____________.
Answer: SSH
Question 37: To store sensitive information you can use ansible-vaulte.
Answer: True
Question 38: Ansible can work as a push automated deployment system and as well as a pull automated deployment system?
Answer: True
Question 39: In Try It Out section of this course, what was the value of "changed=?" under "Play Recap", when you executed the same playbook for second time?
Answer: True
Question 40: What is the output statement of the following snippet?
Answer: syntax error because of conflicting action statements
Question 41: Ansible has two type of servers
Answer: Only node
Question 42: Which os these will loop through items randomaly?
Answer: with_random_choice
Post a comment
Get your FREE PDF on "100 Ways to Try ChatGPT Today"
Generating link, please wait for: 60 seconds
Comments
Join the conversation and share your thoughts! Leave the first comment.