22 lines
1000 B
Markdown
22 lines
1000 B
Markdown
# Taking small steps to learn Ansible; I will write as a notes to myself.
|
|
|
|
## What is Ansible ?
|
|
Ansible is automation tool for making infrastructure as code.
|
|
Helps with managing multiple servers/machines from one code base, making sure all the servers where the ansible is executed have the same configuration.
|
|
Ansible is agentless, does not need installing ansible on target machine, only python interpreter.
|
|
### Nodes
|
|
- Control Node (From which is ansible executed to managed nodes)
|
|
- Managed Node (Server/Machine which we are managing such as remote hosts, PC-s, servers, embedded devices)
|
|
|
|
## Ansible Repo (dir)
|
|
Consists of several parts:
|
|
- Inventory (Holds hosts to manage)
|
|
- Playbooks (What should be executed on the target host)
|
|
- Modules
|
|
- Ansible Configuration
|
|
### Playbooks
|
|
- Set of plays which are executed on target machine.
|
|
- Each play has a set of tasks
|
|
- Multiple repetetive tasks can be group inside **ROLES**
|
|
- **ROLES** (Tasks, Handlers, Vars, Plugins, Templates, Files)
|