Ainsible Flashcards
(16 cards)
What are the two main features of ansible tasks?
they are declarative and impotent
What is SSH?
Secure Shell is a protocol used to securely connect to remote
computers.
What does agentless architecture mean?
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.
What does declarative mean?
define the desired end state, not how to get there.
What does impotent mean?
running the same task should produce the same result.
whats a play?
the most basic unit for running tasks. They map groups of hosts to tasks, which are executed in order, under the conditions defined.
Whats a task?
within a play that define what’s to be executed on node/s. Each task calls a module to perform an operation
What a module?
built in operations (custom ones also exist)
What do inventory files do?
“define the hosts upon which it is expected to operate” → what server/machine to run it on.
become?
become: privilege escalation (like sudo)
when?
adds conditional logic to task execution
register
Captures output of tasks for use in later tasks.
debug?
Used to print variable values or messages.
baso a print statement in python
loop?
Allows tasks to run multiple times (e.g., with range
).
what is meant by imperative commands?
Specify step-by-step commands to reach the desired state.
what are facts ?
System data (facts) are data collected about hosts, done automatically.