diff options
| author | Ahmed Abdelhalim <[email protected]> | 2025-09-12 16:23:12 +0200 |
|---|---|---|
| committer | Ahmed Abdelhalim <[email protected]> | 2025-09-12 16:42:14 +0200 |
| commit | 5c0d85530d78788c309138783d824ed14e8ec718 (patch) | |
| tree | 43b3f1beffbb3accdf7b6ae21c45635f5a5322f5 /roles/ansible/tasks | |
| parent | 6b364ae9a60904126511895d05462a85bf4abe8e (diff) | |
Fix testing ansible role on 2.19.2
The issue is that regex_match either returns a string or none which was
implicitly converted to a boolean, this breaks on 2.19.2+
This ensure compatibility with newer versions.
Diffstat (limited to 'roles/ansible/tasks')
| -rw-r--r-- | roles/ansible/tasks/main.yml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/roles/ansible/tasks/main.yml b/roles/ansible/tasks/main.yml index fe7611ae..de04692e 100644 --- a/roles/ansible/tasks/main.yml +++ b/roles/ansible/tasks/main.yml @@ -2,7 +2,7 @@ - name: "Validate version format" ansible.builtin.assert: that: - - item | regex_search('^[0-9]+\\.[0-9]+\\.[0-9]+$') + - item | regex_search('^[0-9]+\\.[0-9]+\\.[0-9]+$') is not none msg: "Version '{{ item }}' must be in major.minor.patch format" with_items: - "{{ (ansible_core_versions + [ansible_core_default_version]) | unique }}" |
