Variables, Facts and Templates (Jinja2)
DevOpsAnsible

Variables, Facts and Templates (Jinja2)

Make playbooks flexible: variables (declared in many places, with a precedence order), facts (host information Ansible gathers automatically), and Jinja2 templates to generate config files dynamically from variables and facts. Watch the rendered file appear on a real host.

K
KaiMay 23, 2026· 14 views
Modules and Idempotency
DevOpsAnsible

Modules and Idempotency

Deep dive: how a module works internally to achieve idempotency — read the current state, compare to desired, change only the difference, then report changed. Why command/shell aren't idempotent, check mode, and a tour of common modules.

K
KaiMay 23, 2026· 19 views
Playbook: Structure and Tasks
DevOpsAnsible

Playbook: Structure and Tasks

The playbook is the heart of Ansible — a YAML file describing desired state. This article: the structure of plays and tasks, writing and running your first playbook to install a web server, reading the PLAY RECAP, FQCN, and check mode (dry-run).

K
KaiMay 23, 2026· 12 views
Inventory: Static, Dynamic, Groups and V...
DevOpsAnsible

Inventory: Static, Dynamic, Groups and Variables

Inventory is where Ansible knows which machines to manage. This article: write a static inventory (INI/YAML), gather hosts into groups and nested groups, assign variables via group_vars/host_vars, target with patterns, and dynamic inventory for the cloud.

K
KaiMay 23, 2026· 17 views
Installation and Your First Ad-hoc Comma...
DevOpsAutomation

Installation and Your First Ad-hoc Commands

Set up the control node (install Ansible), prepare a host to manage, write the config and inventory files, then run your first ad-hoc commands: ping, command, shell, setup, and become to run as root.

K
KaiMay 23, 2026· 18 views
Ansible Architecture: Control Node, Inve...
DevOpsArchitecture

Ansible Architecture: Control Node, Inventory, Module and SSH

Deep dive into Ansible's architecture: control node, managed node, inventory, module. And exactly what happens when you run a command — Ansible packages the module, ships it over SSH to the host, runs it with the host's Python, gets JSON back. Observe it for real with -vvv.

K
KaiMay 23, 2026· 25 views
What Ansible Is and Why You Should Use I...
DevOpsAutomation

What Ansible Is and Why You Should Use It

Series opener: the configuration-management problem Ansible solves, why 'agentless' and 'idempotent' are the two most important keywords, the core concepts (control node, inventory, playbook, module, role), and the roadmap from basics to writing your own module.

K
KaiMay 23, 2026· 26 views