This commit is contained in:
2023-10-10 23:24:47 +13:00
parent 8b8d5e3d45
commit 9024db2652
9 changed files with 35 additions and 17 deletions

View File

@@ -28,7 +28,7 @@
copy:
src: etc.pam.d.sshd
dest: /etc/pam.d/sshd
notify: restart sshd
notify: Restart sshd
- name: Ensure PAM is enabled for SSH
lineinfile:
@@ -40,12 +40,15 @@
line: 'UsePAM yes'
- regex: '^ChallengeResponseAuthentication '
line: 'ChallengeResponseAuthentication yes'
notify: restart sshd
notify: Restart sshd
- name: Flush Handlers
meta: flush_handlers
- name: Duo SELinux Enablement
when: >
ansible_virtualization_type != 'docker' and
ansible_virtualization_type != 'container'
block:
- name: Copy SELinux Module
copy: