diff --git a/roles/ssh_totp/tasks/main.yml b/roles/ssh_totp/tasks/main.yml index 6ba6cdb..e96b7ee 100644 --- a/roles/ssh_totp/tasks/main.yml +++ b/roles/ssh_totp/tasks/main.yml @@ -14,12 +14,14 @@ dependencies: path: /etc/ssh/sshd_config regexp: '^#?ChallengeResponseAuthentication' line: 'ChallengeResponseAuthentication yes' + notify: Reload sshd - name: Set UsePAM in sshd conf lineinfile: path: /etc/ssh/sshd_config regexp: '^#?UsePAM' line: 'UsePAM yes' + notify: Reload sshd