From 37205d134ea53b3b0f327c910d754886368f5509 Mon Sep 17 00:00:00 2001 From: Matthew Stobbs Date: Wed, 12 Mar 2025 15:22:35 -0600 Subject: [PATCH] properly strip patches --- tasks/config/greetd.yml | 0 tasks/pkgs/greetd.yml | 0 tasks/src/aquamarine.yml | 1 + tasks/src/hypridle.yml | 1 + tasks/src/hyprlock.yml | 1 + tasks/src/nwg_hello.yml | 8 +++++--- vars/pkgs/greetd.yml | 4 ++++ 7 files changed, 12 insertions(+), 3 deletions(-) create mode 100644 tasks/config/greetd.yml create mode 100644 tasks/pkgs/greetd.yml create mode 100644 vars/pkgs/greetd.yml diff --git a/tasks/config/greetd.yml b/tasks/config/greetd.yml new file mode 100644 index 0000000..e69de29 diff --git a/tasks/pkgs/greetd.yml b/tasks/pkgs/greetd.yml new file mode 100644 index 0000000..e69de29 diff --git a/tasks/src/aquamarine.yml b/tasks/src/aquamarine.yml index 7f160ce..8ea546e 100644 --- a/tasks/src/aquamarine.yml +++ b/tasks/src/aquamarine.yml @@ -32,6 +32,7 @@ basedir: "{{ aquamarine.git_path }}" src: aquamarine/Alpine.patch state: present + strip: 1 - name: Configure aquamarine ansible.builtin.command: diff --git a/tasks/src/hypridle.yml b/tasks/src/hypridle.yml index 42e8d7f..24a1313 100644 --- a/tasks/src/hypridle.yml +++ b/tasks/src/hypridle.yml @@ -31,6 +31,7 @@ basedir: "{{ hypridle.git_path }}" src: hypridle/cmakelists.patch state: present + strip: 1 - name: Configure hypridle ansible.builtin.command: diff --git a/tasks/src/hyprlock.yml b/tasks/src/hyprlock.yml index d4d8044..ddeb1b3 100644 --- a/tasks/src/hyprlock.yml +++ b/tasks/src/hyprlock.yml @@ -31,6 +31,7 @@ basedir: "{{ hyprlock.git_path }}" src: hyprlock/cmakelists.patch state: present + strip: 1 - name: Configure hyprlock ansible.builtin.command: diff --git a/tasks/src/nwg_hello.yml b/tasks/src/nwg_hello.yml index 790547c..9581d59 100644 --- a/tasks/src/nwg_hello.yml +++ b/tasks/src/nwg_hello.yml @@ -25,12 +25,14 @@ repo: "{{ nwg_hello.git_repo }}" version: "{{ nwg_hello.vers }}" - - name: Apply patch if it exists for {{ ansible_os_family }} - ignore_failures: true + - name: Apply patch Alpine linux + when: + - ansible_os_family == 'Alpine' ansible.posix.patch: basedir: "{{ nwg_hello.git_path }}" - src: nwg-hello/{{ ansible_os_family }}.patch + src: nwg-hello/Alpine.patch state: present + strip: 1 - name: Install nwg-hello become: true diff --git a/vars/pkgs/greetd.yml b/vars/pkgs/greetd.yml new file mode 100644 index 0000000..010cf50 --- /dev/null +++ b/vars/pkgs/greetd.yml @@ -0,0 +1,4 @@ +greetd: + pkg: + RedHat: + - greetd