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

@@ -6,7 +6,7 @@
yum:
name: >
openssh-server, openssh-clients,
sshpass, passwd
sshpass, passwd, rsyslog
state: installed
- name: Ensure sshd is running
@@ -15,6 +15,12 @@
state: started
enabled: true
- name: Ensure rsyslog is running
service:
name: rsyslog
state: started
enabled: true
- name: Ensure nologin files are absent
file:
path: "{{ item }}"

View File

@@ -26,3 +26,7 @@
- name: Did duo prompt show?
assert:
that: "'Duo two-factor login for' in slurpfile['content'] | b64decode"
# - name: Actual output
# debug:
# msg: "{{ slurpfile['content'] | b64decode }}"