Using Nagios module from ansible-galaxy in AWX

Hello everyone,

I am trying to use Nagios module available in ‘community.general’ via ansible-galaxy. The playbook is being run as ‘Template’ in AWX. Nagios is installed and configured on few hosts but when I run the playbook to enable / disable alerts on those hosts I get this error:

“msg”: “unable to locate nagios.cfg”

If I run same file on Ansible Tower there is no error and ansible / playbook is able to enable/disable alerts.

Please advise.

Playbook using nagios module:

(attachments)

Error-nagios.cfg.PNG