From 7de3f1032c91059f0937094087506364aa1b01ae Mon Sep 17 00:00:00 2001 From: Przemek Grondek Date: Wed, 8 May 2024 01:37:02 +0200 Subject: [PATCH] Fix non-working roles --- localhost.yml | 6 +++--- roles/desktop/tasks/arch.yml | 1 - roles/dwm/tasks/dwm.yml | 6 ++++++ roles/prepare/tasks/arch.yml | 2 +- roles/prusa-slicer/tasks/main.yml | 1 + 5 files changed, 11 insertions(+), 5 deletions(-) diff --git a/localhost.yml b/localhost.yml index 3fbce15..280b22f 100644 --- a/localhost.yml +++ b/localhost.yml @@ -4,13 +4,13 @@ - prepare - systemd-boot - ubuntu - - prusa-slicer + - desktop + - dwm - dev-java - autofs - - dwm + - prusa-slicer - docker - laptop - - desktop - backup - gaming diff --git a/roles/desktop/tasks/arch.yml b/roles/desktop/tasks/arch.yml index 0654370..689301a 100644 --- a/roles/desktop/tasks/arch.yml +++ b/roles/desktop/tasks/arch.yml @@ -88,7 +88,6 @@ - ttf-fira-code - ttf-font-awesome - ttf-liberation - - ttf-symbola - ttf-ubuntu-font-family - name: "Enable network manager" diff --git a/roles/dwm/tasks/dwm.yml b/roles/dwm/tasks/dwm.yml index c826950..e9398d4 100644 --- a/roles/dwm/tasks/dwm.yml +++ b/roles/dwm/tasks/dwm.yml @@ -38,6 +38,11 @@ make: chdir: "{{ desktop_src_dir }}/dwm" +- name: ensure that xsessions directory exists + file: + path: /usr/share/xsessions + state: directory + - name: copy xsession become: yes copy: @@ -56,6 +61,7 @@ dest: /usr/share/xsessions/dwm-gnome.desktop - name: Create gnome session dir + become: yes file: path: /usr/share/gnome-session/sessions state: directory diff --git a/roles/prepare/tasks/arch.yml b/roles/prepare/tasks/arch.yml index 66cb318..8f16240 100644 --- a/roles/prepare/tasks/arch.yml +++ b/roles/prepare/tasks/arch.yml @@ -34,7 +34,7 @@ command: chdir: "{{ arch_src_dir }}/yay" cmd: - makepkg -si --needed + makepkg -si --needed --noconfirm - name: update yay cache shell: diff --git a/roles/prusa-slicer/tasks/main.yml b/roles/prusa-slicer/tasks/main.yml index 7c29251..7d0a92f 100644 --- a/roles/prusa-slicer/tasks/main.yml +++ b/roles/prusa-slicer/tasks/main.yml @@ -1,3 +1,4 @@ - include_tasks: install-program.yml - include_tasks: config-repository.yml + when: ansible_distribution == "Ubuntu"