add syslog installation role

This commit is contained in:
Kevin Heyer 2025-06-15 08:03:43 +02:00
parent 8377f222c6
commit b5d035e6f1
7 changed files with 23 additions and 0 deletions

View file

@ -0,0 +1,6 @@
---
- name: Start and enable rsyslog
ansible.builtin.service:
name: rsyslog
state: started
enabled: true

View file

@ -0,0 +1,17 @@
---
- name: Update apt package index
ansible.builtin.apt:
update_cache: true
cache_valid_time: 3600
- name: Install rsyslog
ansible.builtin.apt:
name: rsyslog
state: present
notify: Start and enable rsyslog
- name: Enable rsyslog
ansible.builtin.service:
name: rsyslog
state: started
enabled: true