diff --git a/evolinux-base/tasks/ssh.yml b/evolinux-base/tasks/ssh.yml index ddfbd38c..d74dcef3 100644 --- a/evolinux-base/tasks/ssh.yml +++ b/evolinux-base/tasks/ssh.yml @@ -44,11 +44,11 @@ - name: Set log level to verbose (for Debian >= 9) replace: dest: /etc/ssh/sshd_config - regexp: '^LogLevel [A-Z]+' + regexp: '^#?LogLevel [A-Z]+' replace: "LogLevel VERBOSE" notify: reload sshd when: - ansible_distribution == "Debian" - - ansible_distribution_major_version | version_compare('9.0', '>=') + - ansible_distribution_major_version | version_compare('9', '>=') - meta: flush_handlers