Skip to content

Commit

Permalink
Always install python3-cryptography
Browse files Browse the repository at this point in the history
Instead of python-cryptography.
CentOS 8 Stream was not able to resolve python-cryptography.
We don't need to support old CentOS versions anymore,
so we can use the python3 package.
  • Loading branch information
majamassarini committed Sep 11, 2024
1 parent 6968837 commit 8673ec1
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions playbooks/roles/generate_secrets/tasks/generate-cert.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,11 @@
# SPDX-License-Identifier: MIT

---
- name: Install Python cryptography module
ansible.builtin.package:
name:
- python-cryptography
become: true
when: (ansible_facts['distribution'] == "CentOS" and ansible_facts['distribution_major_version'] == "7")

- name: Install Python cryptography module
ansible.builtin.package:
name:
- python3-cryptography
become: true
when: (ansible_facts['distribution'] == "CentOS" and ansible_facts['distribution_major_version'] == "8")

- name: Generate OpenSSL private keys
openssl_privatekey:
Expand Down

0 comments on commit 8673ec1

Please sign in to comment.