I've come across the following error when deploying:
TASK [geerlingguy.fluentd : Determine fluent-gem executable location for td-agent < v4] *************************************************************************************************************************
fatal: [dc2-frontend1]: FAILED! => {"msg": "The conditional check 'fluentd_version < 4' failed. The error was: Unexpected templating type error occurred on ({% if fluentd_version < 4 %} True {% else %} False {% endif %}): '<' not supported between instances of 'AnsibleUnsafeText' and 'int'\n\nThe error appears to be in '/home/jmsierra/.ansible/roles/geerlingguy.fluentd/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: Determine fluent-gem executable location for td-agent < v4\n ^ here\n"}
fatal: [dc2-frontend2]: FAILED! => {"msg": "The conditional check 'fluentd_version < 4' failed. The error was: Unexpected templating type error occurred on ({% if fluentd_version < 4 %} True {% else %} False {% endif %}): '<' not supported between instances of 'AnsibleUnsafeText' and 'int'\n\nThe error appears to be in '/home/jmsierra/.ansible/roles/geerlingguy.fluentd/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: Determine fluent-gem executable location for td-agent < v4\n ^ here\n"}
Hi there,
I've come across the following error when deploying:
Ansible environment:
I believe it can be fixed by adding an explicit casting to int in
tasks/main.yml
:PS: Thank you so much for your amazing contributions!