##Failing to strive for idempotency
If you aren’t focusing on writing Idempotent roles, you should be. Most people run into this pitfall
when using certain modules like Command. When using command alone, Ansible will always run the command and mark the task as changed even if nothing has actually changed on the host.
Here is a simple example: I want to enable the optional repo if it’s disabled.
If I do it like this, the task will show as “changed” no matter what.
- name: Enable optional repo
command: yum-config-manager --enable {{item}}
with_items: