Skip to content

Commit 39c14f8

Browse files
authored
Merge branch 'master' into remove-32-bit-support
2 parents 21f839e + 6d458fe commit 39c14f8

2 files changed

Lines changed: 14 additions & 4 deletions

File tree

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99

1010
### Changed
1111

12+
- Update SUSE usr merge workaround to match SLES 16 changes
13+
1214
### Removed
1315

1416
- Support for 32-bit server packages

tasks/copy_usr_etc_pam_sshd.yml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,24 @@
99
- name: Check /usr/etc/pam.d/sshd
1010
stat:
1111
path: /usr/etc/pam.d/sshd
12-
register: usr_etc_pam_sshd
12+
register: locate_pam_sshd
1313

14-
- name: Copy /usr/etc/pam.d/sshd to /etc/pam.d/sshd
14+
- name: Check /usr/lib/pam.d/sshd
15+
stat:
16+
path: /usr/lib/pam.d/sshd
17+
register: locate_pam_sshd
18+
when: locate_pam_sshd.stat.exists is defined
19+
and not locate_pam_sshd.stat.exists
20+
21+
- name: Copy located pam.d/sshd to /etc/pam.d/sshd
1522
copy:
16-
src: /usr/etc/pam.d/sshd
23+
src: "{{ locate_pam_sshd.stat.path }}"
1724
dest: /etc/pam.d/sshd
1825
owner: root
1926
group: root
2027
mode: '0644'
2128
remote_src: true
22-
when: usr_etc_pam_sshd.stat.exists == true
29+
when: locate_pam_sshd.stat.exists is defined
30+
and locate_pam_sshd.stat.exists == true
2331

2432
when: etc_pam_sshd.stat.exists == false

0 commit comments

Comments
 (0)