fix: Duo-prompt on RHEL 8 and RHEL 9

This commit is contained in:
2024-12-30 08:25:21 +13:00
parent 73b9c52474
commit b668b705c3
6 changed files with 31 additions and 9 deletions

View File

@@ -42,6 +42,14 @@
line: 'ChallengeResponseAuthentication yes'
notify: Restart sshd
- name: RHEL9 - Ensure ChallengeResponseAuthentication is enabled
lineinfile:
path: /etc/ssh/sshd_config.d/50-redhat.conf
regex: '^ChallengeResponseAuthentication '
line: 'ChallengeResponseAuthentication yes'
notify: Restart sshd
when: ansible_os_family == 'RedHat' and ansible_distribution_major_version|int >= 9
- name: Flush Handlers
meta: flush_handlers