I've considered the question: What is the difference between declaratively providing an Apache config file, and just copying that file over unconditionally? The big benefits I've come up with are:
- Detecting the change so I can trigger an Apache restart only when the file has changed.
- Ability to do "--check" and "--diff" to tell me what will change during a dry run.
With the downside that the "tasks" become more complicated to build.I had previously built a version of my tool that was just a simpler, local ansible-like tool, with a YAML syntax and realized: I really hate coding Ansible playbooks in YAML. So I started imagining what it might look like if it was in code. I picked Python syntax because I really didn't want to write a parser for a DSL and wanted to see if I could get close enough without it.