Write Ansible playbooks that are idempotent, readable, and maintainable for config management.
Ansible is a strong choice for config management and ad-hoc automation. Use these practices to keep playbooks safe and maintainable.
- name: Ensure package installed
ansible.builtin.apt:
name: nginx
state: present
- name: Ensure config present
ansible.builtin.template:
src: app.conf.j2
dest: /etc/app/app.conf
notify: restart app
Ansible scales from one-off fixes to full fleet management when you keep playbooks idempotent and well-organized.
Get the latest tutorials, guides, and insights on AI, DevOps, Cloud, and Infrastructure delivered directly to your inbox.
A field report from rolling out retrieval-augmented generation in production, including cache bugs, bad embeddings, and how we fixed them.
Practical game day scenarios for CI/CD: broken rollbacks, permission issues, and slow feedback loops—and how we fixed them.
Explore more articles in this category
Version-pinned modules across many repos. The release process, semver discipline, and the breaking-change communication that keeps a shared registry sane.
EXPLAIN ANALYZE output is dense and intimidating. Once you can read it, most slow-query investigations finish in minutes. The patterns we keep seeing.
Backups are easy. Restores are hard. The quarterly drill we run, what's failed during it, and the discipline that makes "we have backups" actually mean something.