Ansible for the Absolute Beginner - Demo - Ansible Inventory

Ansible for the Absolute Beginner - Demo - Ansible Inventory

Assessment

Interactive Video

Information Technology (IT), Architecture

University

Hard

Created by

Quizizz Content

FREE Resource

The video tutorial demonstrates how to test connectivity between Ansible and target machines using SSH. It covers creating an Ansible inventory file, running a ping test, and troubleshooting connectivity issues related to SSH keys. The tutorial also discusses solutions for SSH key checking problems and emphasizes best practices for secure connectivity in production environments.

Read more

7 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the first step to check connectivity between Ansible and a target machine?

Run a ping test using Ansible

Disable host key checking

Create an Ansible playbook

Manually SSH into the target server

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What file is created to specify the target host details in an Ansible project?

Playbook file

Configuration file

Log file

Inventory file

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What module is used in Ansible to perform a connectivity test?

Service

Ping

Copy

Shell

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Why did the connectivity test fail for the second target server?

Ansible configuration error

SSH key fingerprint not added to known hosts

Wrong password

Incorrect IP address

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is one way to resolve the SSH key issue for the second target server?

Use a different password

Change the server's IP address

Manually SSH into the server and accept the key

Reboot the server

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the recommended method for establishing connectivity in production environments?

Manually adding keys to known hosts

Using SSH keys

Disabling host key checking

Using passwords

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What configuration change can disable host key checking in Ansible?

Enable host key checking

Uncomment the host key checking line and set it to false

Use a different Ansible module

Add the server to the inventory file