mirror of
https://github.com/trailofbits/algo.git
synced 2025-06-05 22:54:01 +02:00
Bump ansible from 2.7.10 to 2.7.12 (#1536)
* Bump ansible from 2.7.10 to 2.7.12 Bumps [ansible](https://github.com/ansible/community) from 2.7.10 to 2.7.12. - [Release notes](https://github.com/ansible/community/releases) - [Commits](https://github.com/ansible/community/commits) Signed-off-by: dependabot[bot] <support@github.com> * Parse required ansible version
This commit is contained in:
parent
545ad480a4
commit
ab0f0c00fe
2 changed files with 11 additions and 2 deletions
11
main.yml
11
main.yml
|
@ -9,12 +9,21 @@
|
|||
no_log: true
|
||||
register: ipaddr
|
||||
|
||||
- name: Set required ansible version as a fact
|
||||
set_fact:
|
||||
required_ansible_version:
|
||||
"{{ item | regex_replace('^ansible[\\s+]?(?P<op>[=,>,<]+)[\\s+]?(?P<ver>\\d.\\d(.\\d+)?)$',
|
||||
'{\"op\": \"\\g<op>\",\"ver\": \"\\g<ver>\" }') }}"
|
||||
when: '"ansible" in item'
|
||||
with_items: "{{ lookup('file', 'requirements.txt').splitlines() }}"
|
||||
|
||||
- name: Verify Ansible meets Algo VPN requirements.
|
||||
assert:
|
||||
that:
|
||||
- ansible_version.full is version('2.7.10', '==')
|
||||
- ansible_version.full is version(required_ansible_version.ver, required_ansible_version.op)
|
||||
- not ipaddr.failed
|
||||
msg: >
|
||||
Ansible version is {{ ansible_version.full }}.
|
||||
You must update the requirements to use this version of Algo.
|
||||
Try to run python -m pip install -U -r requirements.txt
|
||||
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
ansible==2.7.10
|
||||
ansible==2.7.12
|
||||
netaddr
|
||||
|
|
Loading…
Add table
Reference in a new issue