ok so every run of my Ansible playbook shows lots of "changed" tasks, so I cant tell what actually changed. The tasks use shell commands for things like adding lines to files and restarting services.
what are the usual patterns for making playbooks idempotent? im fairly new to Ansible and learned mostly from copy-pasting examples. most offenders are shell tasks. restarts happen every run too. any ideas??
