Is not working in ansible 2.9.10
elsebasan opened this issue · 0 comments
elsebasan commented
- name: Change ownership of the installation directory if it had to be created
file:
path: "{{ dynatrace_wsagent_linux_install_dir }}"
owner: "{{ dynatrace_wsagent_owner }}"
group: "{{ dynatrace_wsagent_group }}"
when: dynatrace_wsagent_create_install_dir_result | changed
become: yes
The syntax
when: dynatrace_wsagent_create_install_dir_result | changed
FAILED! => {"msg": "The conditional check 'dynatrace_wsagent_create_install_dir_result | changed' failed. The error was: template error while templating string: no filter named 'changed'. String: {% if dynatrace_wsagent_create_install_dir_result | changed %} True {% else %} False {% endif %}
If I use
when: dynatrace_wsagent_create_install_dir_result is changed
This work.