From fb94b38a57d6e0b0dcc362a9f1c2b4a671c36705 Mon Sep 17 00:00:00 2001 From: Matej Focko Date: Sat, 14 Dec 2024 14:31:39 +0100 Subject: [PATCH] feat: add Rocky to possible targets Signed-off-by: Matej Focko --- playbooks/bootstrap.yml | 2 +- roles/editor_helix/tasks/install_Rocky.yml | 1 + roles/secrets_hcv/tasks/install_Rocky.yml | 1 + roles/secrets_hcv/tasks/main.yml | 2 +- roles/shell_zsh/tasks/install.yml | 2 +- roles/yubikey_pam/tasks/install.yml | 2 +- 6 files changed, 6 insertions(+), 4 deletions(-) create mode 120000 roles/editor_helix/tasks/install_Rocky.yml create mode 120000 roles/secrets_hcv/tasks/install_Rocky.yml diff --git a/playbooks/bootstrap.yml b/playbooks/bootstrap.yml index be32fb8..288b61e 100644 --- a/playbooks/bootstrap.yml +++ b/playbooks/bootstrap.yml @@ -10,7 +10,7 @@ - role: os_el become: true - when: ansible_distribution in [ "AlmaLinux", "CentOS" ] + when: ansible_distribution in [ "AlmaLinux", "CentOS", "Rocky" ] # Upgrade all packages and install the basic-bitch ones - role: base_system diff --git a/roles/editor_helix/tasks/install_Rocky.yml b/roles/editor_helix/tasks/install_Rocky.yml new file mode 120000 index 0000000..5819c74 --- /dev/null +++ b/roles/editor_helix/tasks/install_Rocky.yml @@ -0,0 +1 @@ +install_fedora-family.yml \ No newline at end of file diff --git a/roles/secrets_hcv/tasks/install_Rocky.yml b/roles/secrets_hcv/tasks/install_Rocky.yml new file mode 120000 index 0000000..bbd6a23 --- /dev/null +++ b/roles/secrets_hcv/tasks/install_Rocky.yml @@ -0,0 +1 @@ +install_el.yml \ No newline at end of file diff --git a/roles/secrets_hcv/tasks/main.yml b/roles/secrets_hcv/tasks/main.yml index 4d6ed32..43c8b75 100644 --- a/roles/secrets_hcv/tasks/main.yml +++ b/roles/secrets_hcv/tasks/main.yml @@ -1,6 +1,6 @@ --- - name: Install HC Vault via package manager - when: ansible_distribution in [ "AlmaLinux", "CentOS", "Fedora", "Ubuntu"] + when: ansible_distribution in [ "AlmaLinux", "CentOS", "Fedora", "Rocky", "Ubuntu"] tags: install block: - name: Enable repository diff --git a/roles/shell_zsh/tasks/install.yml b/roles/shell_zsh/tasks/install.yml index 6635a8b..8132187 100644 --- a/roles/shell_zsh/tasks/install.yml +++ b/roles/shell_zsh/tasks/install.yml @@ -34,4 +34,4 @@ name: yad state: present become: true - when: 'ansible_distribution not in [ "AlmaLinux" ] and "openSUSE" not in ansible_distribution' + when: 'ansible_distribution not in [ "AlmaLinux", "Rocky" ] and "openSUSE" not in ansible_distribution' diff --git a/roles/yubikey_pam/tasks/install.yml b/roles/yubikey_pam/tasks/install.yml index fc7923b..e7dfcea 100644 --- a/roles/yubikey_pam/tasks/install.yml +++ b/roles/yubikey_pam/tasks/install.yml @@ -3,7 +3,7 @@ ansible.builtin.package: name: pam_yubico state: present - when: ansible_distribution in [ "AlmaLinux", "CentOS", "Fedora" ] + when: ansible_distribution in [ "AlmaLinux", "CentOS", "Fedora", "Rocky" ] - name: Enable PPA on Ubuntu ansible.builtin.apt_repository: