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.
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
A practical Terraform state isolation guide built from a real environment-mixing incident, with patterns for safer backends, clearer ownership, and lower blast radius.
This infrastructure documentation as code guide shows how a platform team moved runbooks, ownership maps, and architecture decisions into versioned workflows that people actually trusted.
A real story of removing console-only changes, adding drift detection, and getting Terraform back in charge.