Hacker News new | ask | show | jobs
by Terretta 1331 days ago
Feels as though perhaps this should have dropped from playbook into a module?

https://docs.ansible.com/ansible/latest/dev_guide/developing...

Then just writing a function.

2 comments

It should have at least become a role that could be called in the different contexts of the environment it was targetting. Ansible's real power is in the hierarchical inventory, which can be used to efficiently describe the state of all of the things (I use it for everything from cloud things to specific machine things).
Sure, but there's something to be said for locality of behavior.