From be9fd29f909335b637e4f29c2dd3b19425337e38 Mon Sep 17 00:00:00 2001 From: Ryan Cavicchioni Date: Tue, 30 Aug 2022 06:48:21 -0500 Subject: [PATCH] rsyslog: enable RELP --- roles/rsyslog/defaults/main.yaml | 5 ++++- roles/rsyslog/tasks/main.yaml | 3 ++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/roles/rsyslog/defaults/main.yaml b/roles/rsyslog/defaults/main.yaml index ca72da2..095be08 100644 --- a/roles/rsyslog/defaults/main.yaml +++ b/roles/rsyslog/defaults/main.yaml @@ -1,5 +1,7 @@ --- -rsyslog_package_name: rsyslog +rsyslog_package_name: + - rsyslog + - rsyslog-relp rsyslog_package_state: present rsyslog_service_name: rsyslog @@ -19,6 +21,7 @@ rsyslog_load_modules: permitnonkernelfacility: "on" - name: imtcp - name: imudp + - name: imrelp rsyslog_work_directory: /var/spool/rsyslog rsyslog_include_config: /etc/rsyslog.d/*.conf diff --git a/roles/rsyslog/tasks/main.yaml b/roles/rsyslog/tasks/main.yaml index f2d9602..be730f7 100644 --- a/roles/rsyslog/tasks/main.yaml +++ b/roles/rsyslog/tasks/main.yaml @@ -7,8 +7,9 @@ - name: install package package: - name: "{{ rsyslog_package_name }}" + name: "{{ item }}" state: "{{ rsyslog_package_state }}" + loop: "{{ rsyslog_package_name }}" - name: configure template: