sshd template causes error
Calling host: las113.las.kit.edu (Fedora 27)
Failing nodes: localhost -i local
Summary
ansible fails with an error message in the firewalld role complaining about syntax errors.
Steps to reproduce
run ansible-playbook latex.yml -l localhost --vault-id @prompt -K -i local
What is the current bug behavior?
fails with an error on my Fedora 27. Might work on Fedora 28.
What is the expected correct behaviour?
continue and install a proper sshd config
Relevant logs and/or screenshots
TASK [common : install firewalld] ******************************************************
fatal: [127.0.0.1]: FAILED! => {"msg": "The conditional check '((ansible_distribution == \"Fedora\" and ansible_distribution_major_version < 28) or (ansible_distribution == \"CentOS\" and ansible_distribution_major_version >= 7))' failed. The error was: Unexpected templating type error occurred on ({% if ((ansible_distribution == \"Fedora\" and ansible_distribution_major_version < 28) or (ansible_distribution == \"CentOS\" and ansible_distribution_major_version >= 7)) %} True {% else %} False {% endif %}): '<' not supported between instances of 'AnsibleUnsafeText' and 'int'\n\nThe error appears to have been in '/home/gethmann/ansible/ansible/roles/common/tasks/sshd.yml': line 8, 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: install firewalld\n ^ here\n"}
Possible fixes
/cc @gethmann