diff --git a/tasks/rsyslog-configuration.yml b/tasks/rsyslog-configuration.yml index e7b8d95..428ef9d 100644 --- a/tasks/rsyslog-configuration.yml +++ b/tasks/rsyslog-configuration.yml @@ -54,7 +54,7 @@ - name: rsyslog-configuration | Disable logging into /var/log/syslog ansible.builtin.lineinfile: path: /etc/rsyslog.d/50-default.conf - regexp: "^*.*;auth,authpriv.none\t\t\\-/var/log/syslog" + regexp: "^\\*\\.\\*;auth,authpriv.none\t\t\\-/var/log/syslog" owner: root group: root mode: "0644"