diff options
author | Jonas Gunz <himself@jonasgunz.de> | 2024-05-16 00:59:02 +0200 |
---|---|---|
committer | Jonas Gunz <himself@jonasgunz.de> | 2024-05-16 00:59:02 +0200 |
commit | ae8f2c766c95f66c9baa74ccf34d2fd2166123a1 (patch) | |
tree | bb4bcf1a861cfec9a0b7232cfcd7fdcf466df7a9 | |
parent | 29aaee9ab4b08c5b1c56bd09e77ba1eb10d4d042 (diff) | |
download | ansible_collection-ae8f2c766c95f66c9baa74ccf34d2fd2166123a1.tar.gz |
add arch options for sssd and signed_certificate
-rw-r--r-- | galaxy.yml | 2 | ||||
-rw-r--r-- | roles/signed_certificate/tasks/arch.yaml | 7 | ||||
-rw-r--r-- | roles/signed_certificate/tasks/debian.yaml | 6 | ||||
-rw-r--r-- | roles/signed_certificate/tasks/main.yml | 7 | ||||
-rw-r--r-- | roles/sssd/tasks/arch.yaml | 6 | ||||
-rw-r--r-- | roles/sssd/tasks/debian.yaml | 8 | ||||
-rw-r--r-- | roles/sssd/tasks/main.yml | 9 |
7 files changed, 32 insertions, 13 deletions
@@ -1,6 +1,6 @@ namespace: kompetenzbolzen name: stuff -version: 0.24.2 +version: 0.25.0 readme: README.md authors: - Jonas Gunz <himself@jonasgunz.de> 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: diff --git a/roles/sssd/tasks/arch.yaml b/roles/sssd/tasks/arch.yaml new file mode 100644 index 0000000..469455e --- /dev/null +++ b/roles/sssd/tasks/arch.yaml @@ -0,0 +1,6 @@ +--- +- name: Install packages with pacman + community.general.pacman: + name: + - sssd + become: yes diff --git a/roles/sssd/tasks/debian.yaml b/roles/sssd/tasks/debian.yaml new file mode 100644 index 0000000..f3c28b6 --- /dev/null +++ b/roles/sssd/tasks/debian.yaml @@ -0,0 +1,8 @@ +--- +- name: Install packages with apt + apt: + name: + - sssd + - libpam-sss + - libnss-sss + become: yes diff --git a/roles/sssd/tasks/main.yml b/roles/sssd/tasks/main.yml index e24cdfd..2339427 100644 --- a/roles/sssd/tasks/main.yml +++ b/roles/sssd/tasks/main.yml @@ -1,11 +1,6 @@ --- -- name: Install packages - apt: - name: - - sssd - - libpam-sss - - libnss-sss - become: yes +- name: Include distribution specific install tasks + include_tasks: '{{ ansible_facts.os_family | lower }}.yaml' - name: Install SSSD Config file template: |