From e7ac3d67c2eda61a3087806fc73c583816d843cc Mon Sep 17 00:00:00 2001 From: surtur Date: Tue, 1 Aug 2023 22:37:05 +0200 Subject: [PATCH] chore: split off fedora pkgs + rm default nano --- ansible/roles/common/tasks/pkg.yml | 16 +--------------- ansible/roles/common/tasks/pkg_fedora.yml | 16 ++++++++++++++++ 2 files changed, 17 insertions(+), 15 deletions(-) create mode 100644 ansible/roles/common/tasks/pkg_fedora.yml diff --git a/ansible/roles/common/tasks/pkg.yml b/ansible/roles/common/tasks/pkg.yml index 6eb03f1..b627a28 100644 --- a/ansible/roles/common/tasks/pkg.yml +++ b/ansible/roles/common/tasks/pkg.yml @@ -12,19 +12,5 @@ name: "{{ pkgs_arch }}" when: ansible_distribution == "Archlinux" -- name: F38 pkgs - become: true - ansible.builtin.dnf: - state: present - name: "{{ pkgs_fedora38 }}" - when: ansible_distribution == "Fedora" - -- name: Remove cockpit - become: true - ansible.builtin.dnf: - state: absent - name: - - cockpit - - cockpit-bridge - - cockpit-ws +- include_tasks: pkg_fedora.yml when: ansible_distribution == "Fedora" diff --git a/ansible/roles/common/tasks/pkg_fedora.yml b/ansible/roles/common/tasks/pkg_fedora.yml new file mode 100644 index 0000000..707a5c5 --- /dev/null +++ b/ansible/roles/common/tasks/pkg_fedora.yml @@ -0,0 +1,16 @@ +--- +- name: F38 pkgs + become: true + ansible.builtin.dnf: + state: present + name: "{{ pkgs_fedora38 }}" + +- name: Remove unwanted software + become: true + ansible.builtin.dnf: + state: absent + name: + - cockpit + - cockpit-bridge + - cockpit-ws + - nano-default-editor