I recently upgraded ansible to 2.9.4 after getting a different error at the start of provisioning. After upgrading ansible, I updated the vagrant.default.yml to read vagrant_ansible_version: ‘2.9.4’ as well (since it was still showing the older version).
Here is the error code causing the provision to fail:
The conditional check ‘True in nginx_includes_templates.files |
map(attribute=‘path’) | map(‘search’, nginx_includes_deprecated |
regex_escape) | list’ failed. The error was: no filter named ‘search’
The error appears to be in ‘/home/vagrant/trellis/roles/wordpress-setup/tasks
/nginx-includes.yml’: line 13, column 3, but may
be elsewhere in the file depending on the exact syntax problem.
The offending line appears to be:
- name: Warn about deprecated Nginx includes directory
^ here
fatal: [206.169.232.22]: FAILED! => {}
Any assistance would be appreciated. Thanks in advance.