Ainsible Flashcards

(16 cards)

1
Q

What are the two main features of ansible tasks?

A

they are declarative and impotent

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

What is SSH?

A

Secure Shell is a protocol used to securely connect to remote
computers.

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

What does agentless architecture mean?

A

you do not need to install any software (agent) on the target machines you want to manage. Instead, Ansible operates over SSH.

temporary modules/ scripts are used.

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

What does declarative mean?

A

define the desired end state, not how to get there.

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

What does impotent mean?

A

running the same task should produce the same result.

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

whats a play?

A

the most basic unit for running tasks. They map groups of hosts to tasks, which are executed in order, under the conditions defined.

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

Whats a task?

A

within a play that define what’s to be executed on node/s. Each task calls a module to perform an operation

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

What a module?

A

built in operations (custom ones also exist)

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

What do inventory files do?

A

“define the hosts upon which it is expected to operate” → what server/machine to run it on.

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

become?

A

become: privilege escalation (like sudo)

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

when?

A

adds conditional logic to task execution

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

register

A

Captures output of tasks for use in later tasks.

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

debug?

A

Used to print variable values or messages.

baso a print statement in python

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

loop?

A

Allows tasks to run multiple times (e.g., with range).

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

what is meant by imperative commands?

A

Specify step-by-step commands to reach the desired state.

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

what are facts ?

A

System data (facts) are data collected about hosts, done automatically.