From ae8f2c766c95f66c9baa74ccf34d2fd2166123a1 Mon Sep 17 00:00:00 2001 From: Jonas Gunz Date: Thu, 16 May 2024 00:59:02 +0200 Subject: add arch options for sssd and signed_certificate --- roles/signed_certificate/tasks/arch.yaml | 7 +++++++ roles/signed_certificate/tasks/debian.yaml | 6 ++++++ roles/signed_certificate/tasks/main.yml | 7 ++----- 3 files changed, 15 insertions(+), 5 deletions(-) create mode 100644 roles/signed_certificate/tasks/arch.yaml create mode 100644 roles/signed_certificate/tasks/debian.yaml (limited to 'roles/signed_certificate/tasks') diff --git a/roles/signed_certificate/tasks/arch.yaml b/roles/signed_certificate/tasks/arch.yaml new file mode 100644 index 0000000..59fb537 --- /dev/null +++ b/roles/signed_certificate/tasks/arch.yaml @@ -0,0 +1,7 @@ +--- +--- +- name: Install crypt libs + community.general.pacman: + name: + - python-cryptography + become: yes diff --git a/roles/signed_certificate/tasks/debian.yaml b/roles/signed_certificate/tasks/debian.yaml new file mode 100644 index 0000000..bca3cc9 --- /dev/null +++ b/roles/signed_certificate/tasks/debian.yaml @@ -0,0 +1,6 @@ +--- +- name: Install crypt libs + apt: + name: + - python3-cryptography + become: yes diff --git a/roles/signed_certificate/tasks/main.yml b/roles/signed_certificate/tasks/main.yml index 4fb424d..11f6832 100644 --- a/roles/signed_certificate/tasks/main.yml +++ b/roles/signed_certificate/tasks/main.yml @@ -3,11 +3,8 @@ set_fact: cert_changed: False -- name: Install crypt libs - apt: - name: - - python3-cryptography - become: yes +- name: Include distribution specific install tasks + include_tasks: '{{ ansible_facts.os_family | lower }}.yaml' - name: Check for OpenSSL Private Key community.crypto.openssl_privatekey_info: -- cgit v1.2.3