Ansible Introduction Flashcards

1
Q

What tasks can be done with Ansible?

A
  • fetch data from devices
  • copy files to/from devices
  • install software on devices
  • configure software on devices
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is a feature of Ansible that ensires that execution of changes is predictable?

A

Ansible can run “dry run” showing the potential changes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

The ansible software package consists of 3 major components. What are they?

A
  • CLI tools that drive the automation engine (e.g. playbook, ansible doc)
  • DSL language that Ansible is written in
  • madular packaging and publishing framework for Ansible automation
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is the language in which the Ansible domains are written in and how are they structured?

A

Domain-Specific Language (DSL); structured in YAML

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

In what language are the Ansible tools written?

A

the tools run Python software that interprets various files defining how the IT infrastructure should operate

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What are collections and what do they allow to do?

A

modular packaging framework that allow to write, reuse and share Ansible automation with others

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What are other automation tools that are similar in nature?

A

Puppet, Chef, SlatStack

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Does Ansible need an agent to be installed?

A

no

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What authentication methods can Ansible leverage?

A

TACAS+, RADIUS, LDAP (existing auhtentication methods)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

How is Ansible executed when run against a Linux server?

A

copies Python software to the Linux server using SFTP or SCP and executes the software on the server itself

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

How is Ansible executed when run against a a network device?

A

Python software is executed on the Ansible Control Node - ensure it has enough resources, as the script is executed locally

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is a Porting Guide?

A

document breaking changes to help to prepare automation for future Ansible releases; major releases include breaking changes that are not backwards compatible

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is a Changelog?

A

similar to Porting Guide, but very detailed; lists all changes made between two releases

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is the Control Node?

A

machine with Ansible software installed that executes Ansible automation against Managed Nodes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is a Managed Node, also commonly referred to as Host?

A

a host that Ansible automation executes against

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Can a Control Node act as Host at the same time?

A

yes, it’s possible to execute scripts against the managing machine that deploys scripts

17
Q

What is Ansible Inventory File?

A

text file that specifies the hosts and groups of hosts that Ansible will manage - serves as a way to define the target systems or devices on which Ansible will execute tasks and playbooks

18
Q

What is Ansible Playbook?

A

configuration file written in YAML that defines a set of tasks, roles, and configurations to be applied to one or more target hosts

19
Q

What do playbook consist of?

A

one or more tasks, each represented as a YAML dictionary - each task defines an action to be executed on the target hosts

20
Q

What are Handlers?

A

special tasks in playbooks that are triggered only when certain conditions are met; commonly used for tasks like restarting services after a configuration change

21
Q

What are Ansible Modules?

A

small, self-contained scripts or programs that Ansible uses to perform specific tasks on target hosts or remote systems

22
Q

What are system facts?

A

variables that provide information about the system, such as the operating system, network interfaces, memory, disk space, etc

23
Q

Which dictionary provides a common way to specify connection information for network modules in Ansible?

A

provider:

24
Q

What is inventory_hostname?

A

built-in variable in Ansible that refers to the hostname of the current target in the inventory (inventory is the host file with devices where the config is deployed)

25
Q

What is ansible_host?

A
  • variable used to specify the actual hostname or IP address to connect to if it differs from the inventory hostname
  • choice between inventory_hostname and ansible_host depends on inventory setup and whether the hostnames in inventory file match the actual hostnames or IP addresses of the hosts
26
Q
A