Search Header Logo

Ansible Quiz

Authored by solomonraju D

Professional Development

Professional Development

Used 17+ times

Ansible Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the primary purpose of an Ansible playbook?

To manage network devices

To define a set of tasks to be executed on remote hosts

To create virtual machines

To monitor system performance

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a valid Ansible module for managing packages?

command

apt

shell

copy

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In an Ansible playbook, what does the 'hosts' directive specify?

The users who can execute the playbook

The inventory file location

The target machines on which tasks will run

The variables used in the playbook

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which Ansible module would you use to copy files from the control machine to a remote host?

fetch

synchronize

copy

template

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct syntax to define a task in an Ansible playbook?

task: name: "Install package"

- name: "Install package"

- task: "Install package"

task: "Install package"

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following modules is used to manage users in Ansible?

user

group

service

file

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the 'vars' section in an Ansible playbook?

To define the inventory of hosts

To specify the tasks to be executed

To declare variables used in the playbook

To set the execution order of tasks

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?

Discover more resources for Professional Development