Skip to content
This repository has been 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

Open
patsevanton opened this issue Nov 2, 2019 · 0 comments

Comments

@patsevanton
Copy link

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)]
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant