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

Fix invalid syntax for collectd_packages(_base) #1

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

gaaf
Copy link

@gaaf gaaf commented Mar 14, 2017

Fix a syntax error and a bug preventing check_mode to succeed.

This is a variable, surround it with quotes and curly braces.

Fixes error:

TASK [debops.collectd : Install required packages] *****************************
failed: [eenmr1] (item=[u'collectd_packages_base', u'collectd_packages']) =>
{"failed": true, "item": ["collectd_packages_base", "collectd_packages"],
"msg": "No package matching 'collectd_packages_base' is available"}
Fixes error in check_mode:

TASK [debops.collectd : Check what plugins should be enabled] ******************
skipping: [testhost]

TASK [debops.collectd : Extract list of plugins] *******************************
fatal: [testhost]: FAILED! => {"failed": true, "msg": "the field 'args' has an
invalid value, which appears to include a variable that is undefined. The error
was: 'dict object' has no attribute 'stdout_lines'\n\nThe error appears to have
been in 'roles/remote/debops.collectd/tasks/main.yml': line 30, column 3, but
may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe
offending line appears to be:\n\n\n- name: Extract list of plugins\n  ^ here\n"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant