Reduce Duplicate Ansible Tasks with Jinja Conditional Logic
In general, we want to make our playbooks and tasks as simple as possible - but no simpler. Adding a little complexity at times can actually reduce our work and keep things readable. Here's an example: