From 99c483348ba026c9e6584d091736695d0b49867b Mon Sep 17 00:00:00 2001 From: Anthony Rose Date: Tue, 17 Dec 2024 15:20:54 +0000 Subject: [PATCH] Add support for EL 10 --- roles/el/tasks/packages-cli.yml | 26 ++++++++++++++++++++++++++ roles/el/tasks/packages-gui.yml | 11 +++++++++++ roles/el/tasks/zram.yml | 8 +++++++- 3 files changed, 44 insertions(+), 1 deletion(-) diff --git a/roles/el/tasks/packages-cli.yml b/roles/el/tasks/packages-cli.yml index 6d5e66d..1b2df19 100644 --- a/roles/el/tasks/packages-cli.yml +++ b/roles/el/tasks/packages-cli.yml @@ -67,3 +67,29 @@ - wireguard-tools - zram-generator when: ansible_distribution_major_version == '9' +- name: Install CLI packages (EL 10) + become: true + ansible.builtin.dnf: + name: '{{ packages }}' + state: present + vars: + packages: + - "@development" + - bc + - bind-utils + - clang + - dnf-automatic + - git + - gnupg2 + - mc + - nmap + - openssh-server + - podman + - sqlite + - sudo + - tmux + - toolbox + - vim-enhanced + - wireguard-tools + - zram-generator + when: ansible_distribution_major_version == '10' diff --git a/roles/el/tasks/packages-gui.yml b/roles/el/tasks/packages-gui.yml index de9768a..75ab591 100644 --- a/roles/el/tasks/packages-gui.yml +++ b/roles/el/tasks/packages-gui.yml @@ -41,3 +41,14 @@ - google-noto-serif-fonts - liberation-fonts when: ansible_distribution_major_version == '9' +- name: Install GUI packages (EL 10) + become: true + ansible.builtin.dnf: + name: '{{ packages }}' + state: present + vars: + packages: + - git-gui + - gnome-tweaks + - gnome-shell-extension-status-icons + when: ansible_distribution_major_version == '10' diff --git a/roles/el/tasks/zram.yml b/roles/el/tasks/zram.yml index b4c0129..529e349 100644 --- a/roles/el/tasks/zram.yml +++ b/roles/el/tasks/zram.yml @@ -13,9 +13,15 @@ # See the License for the specific language governing permissions and # limitations under the License. -- name: Install zram-generator.conf +- name: Install zram-generator.conf (EL 9) become: true ansible.builtin.copy: src: zram-generator.conf dest: /etc/systemd/zram-generator.conf when: ansible_distribution_major_version == '9' +- name: Install zram-generator.conf (EL 10) + become: true + ansible.builtin.copy: + src: zram-generator.conf + dest: /etc/systemd/zram-generator.conf + when: ansible_distribution_major_version == '10'