Skip to content

Commit ab0f0c0

Browse files
dependabot[bot]dguido
authored andcommitted
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] <[email protected]> * Parse required ansible version
1 parent 545ad48 commit ab0f0c0

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

main.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,21 @@
99
no_log: true
1010
register: ipaddr
1111

12+
- name: Set required ansible version as a fact
13+
set_fact:
14+
required_ansible_version:
15+
"{{ item | regex_replace('^ansible[\\s+]?(?P<op>[=,>,<]+)[\\s+]?(?P<ver>\\d.\\d(.\\d+)?)$',
16+
'{\"op\": \"\\g<op>\",\"ver\": \"\\g<ver>\" }') }}"
17+
when: '"ansible" in item'
18+
with_items: "{{ lookup('file', 'requirements.txt').splitlines() }}"
19+
1220
- name: Verify Ansible meets Algo VPN requirements.
1321
assert:
1422
that:
15-
- ansible_version.full is version('2.7.10', '==')
23+
- ansible_version.full is version(required_ansible_version.ver, required_ansible_version.op)
1624
- not ipaddr.failed
1725
msg: >
26+
Ansible version is {{ ansible_version.full }}.
1827
You must update the requirements to use this version of Algo.
1928
Try to run python -m pip install -U -r requirements.txt
2029

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
ansible==2.7.10
1+
ansible==2.7.12
22
netaddr

0 commit comments

Comments
 (0)