Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fatal error for default value in nrpe_ansible.cfg.j2 #32

Open
amirhmoradi opened this issue Nov 22, 2019 · 1 comment
Open

Fatal error for default value in nrpe_ansible.cfg.j2 #32

amirhmoradi opened this issue Nov 22, 2019 · 1 comment

Comments

@amirhmoradi
Copy link

amirhmoradi commented Nov 22, 2019

Hi,
When using this role with multipe nagios_nrpe_command commands, I get this error:

fatal: [default]: FAILED! => {"changed": false, "msg": "AnsibleError: Unexpected templating type error occurred on (# {{ ansible_managed }}\n\n# Command NRPE\n{% if nagios_nrpe_command is defined %}\n{% for command in nagios_nrpe_command %}\ncommand[{{ command }}]={{ nagios_nrpe_server_plugins_dir }}/{{ nagios_nrpe_command[command][\"script\"] | default('check_' + command) }} {{ nagios_nrpe_command[command][\"option\"] | default() }}\n{% endfor %}\n{% endif %}\n): can only concatenate str (not \"dict\") to str"}
@jloh
Copy link
Owner

jloh commented Jan 1, 2020

Hey @amirhmoradi could you please paste your config? It looks like you've got nagios_nrpe_command setup wrong

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants