Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 12 additions & 4 deletions tasks/copy_usr_etc_pam_sshd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
1 change: 0 additions & 1 deletion tasks/install-thinlinc-suse.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
---
---
- name: Locate 32-bit packages
find:
paths: "/root/tl-{{ thinlinc_version }}-server/packages"
Expand Down