You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TASK [role_under_test : Restart NTP] *******************************************
fatal: [localhost]: FAILED! => {"failed": true, "msg": "The conditional check 'ntp_conf.changed or ntpd_conf.changed' failed. The error was: 'AnsibleEnvironment' object has no attribute '_generate'\n\nThe error appears to have been in '/etc/ansible/roles/role_under_test/tasks/main.yml': line 32, 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: Restart NTP\n ^ here\n"}
Should be fixed with next release as the patch has been released. Or we can test different version of Jinja2 in the image
The text was updated successfully, but these errors were encountered:
the issue is fixed by moving the above task to handlers
Also user quotes for older versions of Jinja2. Examples
when : "{{ firewall_service is defined }}"when: "{{ ansible_os_family == 'Redhat' and ansible_selinux is defined and 'status' in ansible_selinux and ansible_selinux.status == 'enabled' }}"when: "{{ ansible_os_family == 'Debian' }}"
Surrounding in quotes seem to have solved the problem, might be due to the older versions not supporting free forms like
when : firewall_service is defined when: ansible_os_family == 'Redhat' and ansible_selinux is defined and 'status' in ansible_selinux and ansible_selinux.status == 'enabled' when: ansible_os_family == 'Debian'
This issue is similar to ansible/ansible#20309
Should be fixed with next release as the patch has been released. Or we can test different version of Jinja2 in the image
The text was updated successfully, but these errors were encountered: