diff --git a/roles/python/tasks/present.yml b/roles/python/tasks/present.yml index 238002f..c6e36ea 100644 --- a/roles/python/tasks/present.yml +++ b/roles/python/tasks/present.yml @@ -31,6 +31,17 @@ ansible.builtin.debug: var: ansible_distribution_major_version +# 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' + - python_version == '3.9' + ansible.builtin.dnf: + name: + - https://kojipkgs.fedoraproject.org//packages/python3.9/3.9.19/2.fc38/x86_64/python3.9-3.9.19-2.fc38.x86_64.rpm + disable_gpg_check: true + # https://lists.fedoraproject.org/archives/list/python-devel@lists.fedoraproject.org/thread/7XHGWHBQDNFKNGSZTP44SSD6PQKZPG6C/ - name: Test Fedora package when: @@ -51,7 +62,7 @@ when: - ansible_distribution == 'Fedora' - ansible_distribution_major_version == '38' - - python_version == '3.10' + - python_version == '3.10' or python_version == '3.9' ansible.builtin.shell: | set -o pipefail rpm -q expat | grep 2.6