Update to 2022-03-04 18:00

This commit is contained in:
Daniel Berteaud
2022-03-04 18:00:06 +01:00
parent f8eb615f1a
commit 6918bfc1ce
17 changed files with 190 additions and 22 deletions

View File

@@ -111,11 +111,20 @@
lineinfile: path=/etc/screenrc regexp='^shell\s.*' line='shell -/bin/sh'
when: ansible_os_family == 'Debian'
- name: Install rsyslog
package: name=rsyslog
when: not system_disable_syslog
- name: Check if rsyslog is installed
stat: path=/lib/systemd/system/rsyslog.service
register: system_rsyslog_unit
- name: Handle syslog daemon
service:
name: rsyslog
state: "{{ (system_disable_syslog | default(False)) | ternary('stopped','started') }}"
enabled: "{{ (system_disable_syslog | default(False)) | ternary(False,True) }}"
when: system_rsyslog_unit.stat.exists
- name: Remove old bash aliases script
file: path=/etc/profile.d/bash_aliases.sh state=absent