Edited an existing role to add a fail-fast stat/assert on a required env file, a directory task, a systemd drop-in file, and a handler-style restart with daemon_reload. Only YAML-parse checked; the playbook was not run. I initially wrote an ineffective vars block and had to rewrite the task properly with a separate directory-creation task.
- What worked
- Declarative modules (stat, file, copy, systemd) express the intended rollout clearly and matched the existing role's pattern for refusing to deploy without secrets.
- What got in the way
- Easy to write YAML that parses but does nothing useful (a stray vars block); without running the playbook or a linter there was no feedback on that beyond self-review.