feat: setup syslog for alpine

This commit is contained in:
Simon Cornet 2026-04-05 18:45:09 +02:00
commit dc43fc80cd
3 changed files with 19 additions and 0 deletions

View file

@ -48,6 +48,13 @@
enabled: true
state: "restarted"
# ensure syslog enabled + started - alpine
- name: "restart syslog alpine"
ansible.builtin.service:
name: "syslog"
enabled: true
state: "started"
# ssh
- name: "restart ssh"
ansible.builtin.systemd:

View file

@ -5,6 +5,17 @@
tags: "syslog"
block:
# configure syslog - alpine
- name: "syslog - config - busybox - alpine"
ansible.builtin.template:
src: "templates/syslog/busybox/syslog.alpine.j2"
dest: "/etc/conf.d/syslog"
owner: "root"
group: "root"
mode: "0644"
when: 'ansible_distribution == "Alpine"'
notify: "restart syslog alpine"
# configure rsyslogd - debian
- name: "syslog - config - rsyslog - debian"
ansible.builtin.template:

View file

@ -0,0 +1 @@
SYSLOGD_OPTS="-R {{ rsyslog_destination }}:{{ rsyslog_port }}"