mirror of
https://github.com/trailofbits/algo.git
synced 2025-04-18 07:07:08 +02:00
Update required_ansible_version regex to support 2.10.x (#14115)
(in advance of actually using ansible>=2.10.x)
This commit is contained in:
parent
11c0c2ca71
commit
968a676ef0
1 changed files with 1 additions and 1 deletions
2
main.yml
2
main.yml
|
@ -24,7 +24,7 @@
|
|||
- 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+)?)$',
|
||||
"{{ 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() }}"
|
||||
|
|
Loading…
Add table
Reference in a new issue