Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The conditional check 'not zookeeper_debian_systemd_enabled' failed. #94

Open
halil9 opened this issue Jan 31, 2020 · 0 comments
Open

Comments

@halil9
Copy link

halil9 commented Jan 31, 2020

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:

    • etc_init.stat.exists == true
    • ansible_service_mgr != 'systemd'
      notify:
    • Restart zookeeper

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant