WorksheetsAnsible part 2
Total questions: 11
Worksheet time: 5mins
What does Notify do when available in ansible tasks?
It makes sure that a task runs only once, doesn’t matter if the task was called 1000 times or more
Sends a notification of a task completion
Creates a comment for an specific task.
How do you perform a loop in Ansible?
(choose all that apply)
using ‘while’
using ‘item’
using ‘for’
using ‘range’
using 'loop'
This is a usecase for ansible Facts
When I want to change the standard output color
When you want to apply commands to specific hosts
When I want to apply a command multiple times
In which programming language is Ansible based on?
Java
Ruby
Python
C#
How do you use variables in ansible?
with {{ }}
with $
just write the name of the variable
with $()
What extension do the template files in Ansible have?
.in
.yml
.j2
Ansible has a paid license option
True
False
Roles are a way to ...
(Choose all that apply)
Reuse playbooks
Have the tasks of a playbook more organized
Collaborate by sharing the roles on public repos
Packer is a tool that builds
a VM
an image for a container
an image for a VM
Which ones are alternatives to Ansible?
(choose all that apply)
terraform
puppet
chef
jenkins
Which python module does Ansible use to connect via ssh with all its nodes?
pikamolo
paramiko
parangaricutirimicuaro
poco-yo
