library/roles/ubuntu-deb-general: Fix the rsyslog tasks.

This commit is contained in:
Andrea Dell'Amico 2016-10-24 15:33:10 +02:00
parent ea68aa7b2a
commit 4b4507bdce
2 changed files with 2 additions and 3 deletions

View File

@ -14,7 +14,6 @@
- include: pubkeys.yml
when: manage_root_ssh_keys
- include: rsyslogfix.yml
when: is_precise and ansible_kernel != "3.2.0-4-amd64"
- include: unattended-upgrades.yml
- include: pki-basics.yml
- include: install_external_ca_cert.yml

View File

@ -7,8 +7,8 @@
notify: Restart rsyslog
tags: rsyslog
- name: Enable the kernel logger on ubuntu 12.04 and kernel major version >= 3
lineinfile: dest=/etc/rsyslog.conf line="$ModLoad imklog" insertafter="^#$ModLoad imklog" backup=yes
- name: Enable the kernel logger on ubuntu >= 12.04 and kernel major version >= 3
lineinfile: dest=/etc/rsyslog.conf line="$ModLoad imklog " insertafter="\\$ModLoad\ imuxsock" backup=yes
when:
- is_precise and ansible_kernel == "3.2.0-4-amd64"
- is_trusty