Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Ansible part 2

Total questions: 11

Worksheet time: 5mins

Name
Class
Date
1.

What does Notify do when available in ansible tasks?

a)

It makes sure that a task runs only once, doesn’t matter if the task was called 1000 times or more

b)

Sends a notification of a task completion

c)

Creates a comment for an specific task.

2.

How do you perform a loop in Ansible?

(choose all that apply)

a)

using ‘while’

b)

using ‘item’

c)

using ‘for’

d)

using ‘range’

e)

using 'loop'

3.

This is a usecase for ansible Facts

a)

When I want to change the standard output color

b)

When you want to apply commands to specific hosts

c)

When I want to apply a command multiple times

4.

In which programming language is Ansible based on?

a)

Java

b)

Ruby

c)

Python

d)

C#

5.

How do you use variables in ansible?

a)

with {{ }}

b)

with $

c)

just write the name of the variable

d)

with $()

6.

What extension do the template files in Ansible have?

a)

.in

b)

.yml

c)

.j2

7.

Ansible has a paid license option

a)

True

b)

False

8.

Roles are a way to ...


(Choose all that apply)

a)

Reuse playbooks

b)

Have the tasks of a playbook more organized

c)

Collaborate by sharing the roles on public repos

9.

Packer is a tool that builds

a)

a VM

b)

an image for a container

c)

an image for a VM

10.

Which ones are alternatives to Ansible?

(choose all that apply)

a)

terraform

b)

puppet

c)

chef

d)

jenkins

11.

Which python module does Ansible use to connect via ssh with all its nodes?

a)

pikamolo

b)

paramiko

c)

parangaricutirimicuaro

d)

poco-yo