From 0db5db71421e43488403e0811e78103914d342e0 Mon Sep 17 00:00:00 2001 From: Peter Wirdemo Date: Tue, 7 Jan 2025 16:58:34 +0000 Subject: [PATCH 1/2] removed extra document header --- tasks/install-thinlinc-suse.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/tasks/install-thinlinc-suse.yml b/tasks/install-thinlinc-suse.yml index 1b0e5f0..f95a75f 100644 --- a/tasks/install-thinlinc-suse.yml +++ b/tasks/install-thinlinc-suse.yml @@ -1,5 +1,4 @@ --- ---- - name: Locate 32-bit packages find: paths: "/root/tl-{{ thinlinc_version }}-server/packages" From f26ca0ee75502007f2897d4ae176f5b2082aa230 Mon Sep 17 00:00:00 2001 From: Peter Wirdemo Date: Tue, 7 Jan 2025 16:59:24 +0000 Subject: [PATCH 2/2] opensuse moved pam/sshd to /usr/lib --- tasks/copy_usr_etc_pam_sshd.yml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/tasks/copy_usr_etc_pam_sshd.yml b/tasks/copy_usr_etc_pam_sshd.yml index c7fc8b1..ad37552 100644 --- a/tasks/copy_usr_etc_pam_sshd.yml +++ b/tasks/copy_usr_etc_pam_sshd.yml @@ -9,16 +9,24 @@ - name: Check /usr/etc/pam.d/sshd stat: path: /usr/etc/pam.d/sshd - register: usr_etc_pam_sshd + register: locate_pam_sshd - - name: Copy /usr/etc/pam.d/sshd to /etc/pam.d/sshd + - name: Check /usr/lib/pam.d/sshd + stat: + path: /usr/lib/pam.d/sshd + register: locate_pam_sshd + when: locate_pam_sshd.stat.exists is defined + and not locate_pam_sshd.stat.exists + + - name: Copy located pam.d/sshd to /etc/pam.d/sshd copy: - src: /usr/etc/pam.d/sshd + src: "{{ locate_pam_sshd.stat.path }}" dest: /etc/pam.d/sshd owner: root group: root mode: '0644' remote_src: true - when: usr_etc_pam_sshd.stat.exists == true + when: locate_pam_sshd.stat.exists is defined + and locate_pam_sshd.stat.exists == true when: etc_pam_sshd.stat.exists == false