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