Skip to content
This repository was archived by the owner on Jun 27, 2023. It is now read-only.
This repository was archived by the owner on Jun 27, 2023. It is now read-only.

Stop if ansible version is too low, make sure that the Ansible version is Ansible 2.4.2 or later on Ansible 2.9.0 #27

@patsevanton

Description

@patsevanton
ansible-playbook -i inventory.ini local_prepare.yml

PLAY [initializing deployment environment] ******************************************************************************************************

TASK [download : Stop if ansible version is too low, make sure that the Ansible version is Ansible 2.4.2 or later, otherwise a compatibility issue occurs.] ***
fatal: [localhost]: FAILED! => {"msg": "The conditional check 'ansible_version.full|version_compare('2.4.2', '>=')' failed. The error was: template error while templating string: no filter named 'version_compare'. String: {% if ansible_version.full|version_compare('2.4.2', '>=') %} True {% else %} False {% endif %}"}

PLAY RECAP **************************************************************************************************************************************
localhost                  : ok=0    changed=0    unreachable=0    failed=1    skipped=0    rescued=0    ignored=0   

[centos@ansible-apatsev kafka-ansible]$ ansible --version
ansible 2.9.0
  config file = /home/centos/thirdparty-ops/kafka-ansible/ansible.cfg
  configured module search path = [u'/home/centos/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/lib/python2.7/site-packages/ansible
  executable location = /usr/bin/ansible
  python version = 2.7.5 (default, Oct 30 2018, 23:45:53) [GCC 4.8.5 20150623 (Red Hat 4.8.5-36)]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions