Hi All,
New guy to Ansible here…
- New python module called ‘pinger_test.py’ and put it in ./ansible/library.
- Ran ‘make webdocs’ while in ./ansible
Playbook is:
Hi All,
New guy to Ansible here…
remove the .py from the file
Okay, so my error was very very stupid. Everything was correct, but I was executing the playbook as such ‘sudo ansible-playbook xxxxx’ and believe since was sudo’ing, I was losing the environment variables that were previously set. Doh!