Commit dc43fc80 authored by Simon Cornet's avatar Simon Cornet
Browse files

feat: setup syslog for alpine

parent 4426ba1c
Loading
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -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:
+11 −0
Original line number Diff line number Diff line
@@ -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:
+1 −0
Original line number Diff line number Diff line
SYSLOGD_OPTS="-R {{ rsyslog_destination }}:{{ rsyslog_port }}"