Skip to content

Commit dc1055c

Browse files
authored
fix: OracleLinux 8 uses python3.11 cryptography (#620)
1 parent 31778df commit dc1055c

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ ENHANCEMENTS:
1212
- Refactor handlers to avoid Ansible Lint warnings.
1313
- Enable SELinux configuration tasks on Oracle Linux OS.
1414
- Bump the Ansible `ansible.posix` collection to `1.5.2`, `community.general` collection to `6.4.0`, `community.crypto` collection to `2.13.0` and `community.docker` collection to `3.4.5`.
15+
- Oracle Linux 8 requires python library package `python3.11-cryptography` for validating the NGINX Plus repository certificate.
1516

1617
CI/CD:
1718

tasks/plus/setup-license.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,16 @@
6666
- name: (Debian/Red Hat/SLES OSs) Install cryptography package
6767
ansible.builtin.package:
6868
name: "{{ (ansible_python['version']['major'] == 3) | ternary('python3-cryptography', 'python2-cryptography') }}"
69+
when:
70+
- ansible_facts['distribution'] != "OracleLinux"
71+
- ansible_facts['distribution_major_version'] != "8"
72+
73+
- name: (OracleLinux 8) Install cryptography package
74+
ansible.builtin.package:
75+
name: "python3.11-cryptography"
76+
when:
77+
- ansible_facts['distribution'] == "OracleLinux"
78+
- ansible_facts['distribution_major_version'] == "8"
6979

7080
- name: (Debian/Red Hat/SLES OSs) Check that NGINX Plus certificate is valid
7181
community.crypto.x509_certificate_info:

0 commit comments

Comments
 (0)