3 ms·
Feels as though perhaps this should have dropped from playbook into a module? https://docs.ansible.com/ansible/latest/dev_guide/developing_modules_general.html
by Terretta 4y ago
Feels as though perhaps this should have dropped from playbook into a module?
https://docs.ansible.com/ansible/latest/dev_guide/developing_modules_general.html https://docs.ansible.com/ansible/latest/dev_guide/developing...
Then just writing a function.
- traverseda 4y agoSure, but there's something to be said for locality of behavior.
- senorsmile 4y agoIt 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).