Hi, I have a problem with the ansible-zookeeper installation. The logs are below:
fatal: [humio1]: FAILED! => {"msg": "The conditional check 'not zookeeper_debian_systemd_enabled' failed. The error was: An unhandled exception occurred while templating '{{ _ubuntu_1504 or _debian_8 }}'. Error was a <class 'ansible.errors.AnsibleError'>, original message: An unhandled exception occurred while templating '{{ ansible_distribution == 'Debian' and ansible_distribution_version|version_compare(8.0, '>=') }}'. Error was a <class 'ansible.errors.AnsibleError'>, original message: template error while templating string: no filter named 'version_compare'. String: {{ ansible_distribution == 'Debian' and ansible_distribution_version|version_compare(8.0, '>=') }}\n\nThe error appears to be in '/root/.ansible/roles/AnsibleShipyard.ansible-zookeeper/tasks/upstart.yml': line 2, 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: Check if /etc/init exists\n ^ here\n"}
My upstart.yaml :
name: Check if /etc/init exists
stat: path=/etc/init/
register: etc_init
Hi, I have a problem with the ansible-zookeeper installation. The logs are below:
fatal: [humio1]: FAILED! => {"msg": "The conditional check 'not zookeeper_debian_systemd_enabled' failed. The error was: An unhandled exception occurred while templating '{{ _ubuntu_1504 or _debian_8 }}'. Error was a <class 'ansible.errors.AnsibleError'>, original message: An unhandled exception occurred while templating '{{ ansible_distribution == 'Debian' and ansible_distribution_version|version_compare(8.0, '>=') }}'. Error was a <class 'ansible.errors.AnsibleError'>, original message: template error while templating string: no filter named 'version_compare'. String: {{ ansible_distribution == 'Debian' and ansible_distribution_version|version_compare(8.0, '>=') }}\n\nThe error appears to be in '/root/.ansible/roles/AnsibleShipyard.ansible-zookeeper/tasks/upstart.yml': line 2, 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: Check if /etc/init exists\n ^ here\n"}
My upstart.yaml :
name: Check if /etc/init exists stat: path=/etc/init/ register: etc_init
name: Upstart script. template: src=zookeeper.conf.j2 dest=/etc/init/zookeeper.conf when:
lsb_release -a results:
No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 16.04.6 LTS Release: 16.04 Codename: xenial
I am waiting for your help thanks in advance