Skip to content

Commit

Permalink
Update required_ansible_version regex to support 2.10.x (trailofbits#…
Browse files Browse the repository at this point in the history
…14115)

(in advance of actually using ansible>=2.10.x)
  • Loading branch information
tamsky authored Jan 5, 2021
1 parent 11c0c2c commit 968a676
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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() }}"
Expand Down

0 comments on commit 968a676

Please sign in to comment.