Closed mamedin closed 3 years ago
Theres another error that is fixed by installing jmespath
pip install jmespath
I'm using ansible 2.8 and python 2.7.7:
ansible 2.8.0
config file = /home/arodrigo/artefactual/deployment-qa-servers/envs/qa-1.11/ansible.cfg
configured module search path = [u'/home/arodrigo/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
ansible python module location = /home/arodrigo/artefactual/myansible-2.8/local/lib/python2.7/site-packages/ansible
executable location = /home/arodrigo/artefactual/myansible-2.8/bin/ansible
python version = 2.7.17 (default, Jan 19 2020, 19:54:54) [GCC 9.2.1 20200110]
Please add jmespath
to requirements.yml
Your error is fixed by editing https://github.com/artefactual-labs/ansible-archivematica-src/blob/stable/1.11.x/tasks/configure-gpg.yml#L21 and changing line 21 to
- when: "ansible_distribution_version | version_compare('18.04', '>=')"
+ when: "ansible_distribution_version is version('18.04', '>=')"
Error message:
The
version_compare
filter is obsolete, it must be replaced byversion
filter.