Skip to content

Commit

Permalink
fix when conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
mafalb committed Apr 18, 2024
1 parent fc8ce2c commit c4c611a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions roles/python/tasks/present.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
# https://lists.fedoraproject.org/archives/list/python-devel@lists.fedoraproject.org/thread/7XHGWHBQDNFKNGSZTP44SSD6PQKZPG6C/
- name: Test Fedora package
when:
- ansible_distribution = 'Fedora'
- ansible_distribution_major_version = 38
- ansible_distribution == 'Fedora'
- ansible_distribution_major_version == 38
ansible.builtin.dnf:
name:
- https://kojipkgs.fedoraproject.org//packages/python3.10/3.10.14/2.fc38/x86_64/python3.10-3.10.14-2.fc38.x86_64.rpm
Expand All @@ -40,8 +40,8 @@

- name: Assert expat 2.6.0 is present
when:
- ansible_distribution = 'Fedora'
- ansible_distribution_major_version = 38
- ansible_distribution == 'Fedora'
- ansible_distribution_major_version == 38
ansible.builtin.shell:
set -o pipefail
rpm -q expat | grep 2.6
Expand Down

0 comments on commit c4c611a

Please sign in to comment.