Optimization and Execution Strategy
DevOpsAnsible

Optimization and Execution Strategy

Running Ansible fast and safely across hundreds of hosts: forks and strategy control parallelism, serial for zero-downtime rolling updates, delegate_to/run_once, async for long tasks, fact caching and pipelining for speed, tags and check mode for control.

K
KaiMay 23, 2026· 14 views
Extending Ansible: Filter, Lookup, and C...
DevOpsAnsible

Extending Ansible: Filter, Lookup, and Callback Plugins

Modules extend the work done on the host; plugins extend Ansible itself, running on the control node. This article: filter plugins (transform data in Jinja2), lookup plugins (fetch external data), callback plugins (customize output), and the module vs plugin distinction.

K
KaiMay 23, 2026· 11 views
Writing a Custom Module in Python
DevOpsAnsible

Writing a Custom Module in Python

Deep dive: write your own Ansible module in Python. Understand AnsibleModule, argument_spec, exit_json/fail_json, supporting check_mode, and the pattern for achieving idempotency. This is where the mechanism from Article 1 (shipping a module over SSH) comes full circle.

K
KaiMay 23, 2026· 15 views
Ansible Vault: Managing Secrets
DevOpsSecurity

Ansible Vault: Managing Secrets

Passwords and API keys can't sit in plaintext in Git. Ansible Vault encrypts secrets with AES256, decrypting automatically at run time. This article: encrypt/view/edit secret files, encrypt_string for individual values, using them in a playbook, and best practices.

K
KaiMay 23, 2026· 18 views
Ansible Galaxy and Collections
DevOpsAnsible

Ansible Galaxy and Collections

Ansible's modern packaging and distribution: a collection bundles modules, roles, and plugins under one namespace; FQCN for explicit calls; installing collections from Galaxy with requirements.yml; and distinguishing ansible-core from the full ansible package.

K
KaiMay 23, 2026· 24 views
Roles: Organizing Reusable Code
DevOpsAnsible

Roles: Organizing Reusable Code

As a playbook grows, you need organization. A role is how Ansible packages tasks, handlers, templates, and variables into a reusable unit with a standard directory structure. This article: create a role with ansible-galaxy init, fill it in, and use it in a playbook.

K
KaiMay 23, 2026· 19 views
Handlers, Loops and Conditionals
DevOpsAnsible

Handlers, Loops and Conditionals

Control playbook flow: loop to repeat a task over many values, when to run conditionally, handlers to react to changes (restart on config change), and block/rescue for clean error handling. With real run logs.

K
KaiMay 23, 2026· 28 views