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 templating error on ansible 2.9.0 #42

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

Conversation

mvdbeek
Copy link

@mvdbeek mvdbeek commented Feb 13, 2020

Changes

This fixes:

TASK [mtchavez.influxdb : Run config update] *************************************************************
fatal: [gcc-8.training.galaxyproject.eu]: FAILED! => {"msg": "The conditional check 'write_config | changed' failed. The error was: template error while templating string: no filter named 'changed'. String: {% if write_config | changed %} True {% else %} False {% endif %}\n\nThe error appears to be in '/home/ubuntu/galaxy/roles/mtchavez.influxdb/tasks/main.yml': line 58, 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: Run config update\n  ^ here\n"

Verify

Run the role on ansible >= 2.9.0


Add any relevant fixes or closes to reference github issues

This fixes:
```
TASK [mtchavez.influxdb : Run config update] *************************************************************
fatal: [gcc-8.training.galaxyproject.eu]: FAILED! => {"msg": "The conditional check 'write_config | changed' failed. The error was: template error while templating string: no filter named 'changed'. String: {% if write_config | changed %} True {% else %} False {% endif %}\n\nThe error appears to be in '/home/ubuntu/galaxy/roles/mtchavez.influxdb/tasks/main.yml': line 58, 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: Run config update\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