mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-07-27 08:15:54 +02:00
Update to 2022-03-04 18:00
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user