appsembler / configuration

a simple, but flexible, way for anyone to stand up an instance of the edX platform that is fully configured and ready-to-go
GNU Affero General Public License v3.0
14 stars 13 forks source link

ansible 2.9 fix: no more changed filter #391

Closed thraxil closed 2 years ago

thraxil commented 2 years ago

Running previous with 2.9 generates an error like:

FAILED! => {"msg": "The conditional check 'nltk_download|changed' failed. The error was: template error while templating string: no filter named 'changed'. String: {% if nltk_download|changed %} True {% else %} False {% endif %}\n\nThe error appears to be in '/workspace/configuration/playbooks/roles/nltk/tasks/main.yml': line 22, 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: unarchive nltk data\n  ^ here\n"}

I haven't found good documentation on this (nothing in the Ansible 2.9 release notes), but lots of other people with the same "no filter named 'changed'" error message and the fix is the change to is.