alliance-boreale/infrastructure/ansible2/roles/common/tasks/logging.yml
Dan Allaire ef98fd8a3f Refonte
2026-03-09 18:23:06 -04:00

22 lines
489 B
YAML

# Alliance Boréale - Rôle Common - Logging Configuration
# Date: 2025-10-31
---
- name: "📊 Ensure rsyslog is installed"
ansible.builtin.apt:
name: rsyslog
state: present
- name: "📊 Configure log rotation"
ansible.builtin.template:
src: logrotate-ansible.j2
dest: /etc/logrotate.d/ansible
owner: root
group: root
mode: '0644'
- name: "✅ Start and enable rsyslog"
ansible.builtin.systemd:
name: rsyslog
state: started
enabled: true