ansible-learning/README.md

22 lines
1000 B
Markdown
Raw Permalink Normal View History

2023-08-22 15:48:17 +02:00
# 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)