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: