Skip to content

Commit abdb8ba

Browse files
committed
Added workaround for /usr/etc/pam.d/sshd
1 parent 6af0c36 commit abdb8ba

2 files changed

Lines changed: 24 additions & 0 deletions

File tree

tasks/copy_usr_etc_pam_sshd.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
3+
- name: Check /etc/pam.d/sshd
4+
stat:
5+
path: /etc/pam.d/sshd
6+
register: etc_pam_sshd
7+
8+
- block:
9+
10+
- name: Check /usr/etc/pam.d/sshd
11+
stat:
12+
path: /usr/etc/pam.d/sshd
13+
register: usr_etc_pam_sshd
14+
15+
- name: Copy /usr/etc/pam.d/sshd to /etc/pam.d/sshd
16+
copy:
17+
src: /usr/etc/pam.d/sshd
18+
dest: /etc/pam.d/sshd
19+
remote_src: true
20+
when: usr_etc_pam_sshd.stat.exists == true
21+
22+
when: etc_pam_sshd.stat.exists == false

tasks/main.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@
3030
when: ansible_os_family in ["Debian", "Ubuntu", "Linuxmint"]
3131
when: thinlinc_packages_installed.rc == 1
3232

33+
- name: Copy /usr/etc/pam.d/sshd
34+
include_tasks: "copy_usr_etc_pam_sshd.yml"
3335

3436
- name: Copy in tlsetup.answers
3537
template:

0 commit comments

Comments
 (0)