pve_service #67
1 changed files with 0 additions and 7 deletions
|
@ -1,12 +1,10 @@
|
|||
---
|
||||
- name: Install rsyslog
|
||||
become: true
|
||||
apt:
|
||||
name: rsyslog
|
||||
state: present
|
||||
|
||||
- name: Install rsyslog modules if needed
|
||||
become: true
|
||||
apt:
|
||||
name: "{{ item.pkg }}"
|
||||
state: present
|
||||
|
@ -18,7 +16,6 @@
|
|||
pkg: rsyslog-hiredis
|
||||
|
||||
- name: Deploy main rsyslog configuration
|
||||
become: true
|
||||
template:
|
||||
src: "{{ item.src }}"
|
||||
dest: "{{ item.dest }}"
|
||||
|
@ -33,7 +30,6 @@
|
|||
notify: Restart rsyslog
|
||||
|
||||
- name: Create journald.conf.d directory
|
||||
become: true
|
||||
file:
|
||||
path: /etc/systemd/journald.conf.d
|
||||
state: directory
|
||||
|
@ -42,7 +38,6 @@
|
|||
mode: u=rwx,g=rx,o=rx
|
||||
|
||||
- name: Deploy journald configuration
|
||||
become: true
|
||||
template:
|
||||
src: forward-syslog.conf.j2
|
||||
dest: /etc/systemd/journald.conf.d/forward-syslog.conf
|
||||
|
@ -52,7 +47,6 @@
|
|||
notify: Restart systemd-journald
|
||||
|
||||
- name: Deploy logrotate configuration
|
||||
become: true
|
||||
template:
|
||||
src: logrotate.j2
|
||||
dest: /etc/logrotate.d/rsyslog
|
||||
|
@ -62,7 +56,6 @@
|
|||
notify: Reload logrotate
|
||||
|
||||
- name: Enable rsyslog service
|
||||
become: true
|
||||
systemd:
|
||||
name: rsyslog.service
|
||||
state: started
|
||||
|
|
Loading…
Reference in a new issue