From 4ed0583343022cc3c92c51f0cbe176c2f6b2cfe5 Mon Sep 17 00:00:00 2001 From: Sergei Petrosian Date: Tue, 4 Jun 2024 09:04:04 +0200 Subject: [PATCH] Fix EL 7 maxdatasize incorrect condition --- roles/rsyslog/templates/input_relp.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/rsyslog/templates/input_relp.j2 b/roles/rsyslog/templates/input_relp.j2 index e274285f..7196e8cb 100644 --- a/roles/rsyslog/templates/input_relp.j2 +++ b/roles/rsyslog/templates/input_relp.j2 @@ -2,7 +2,7 @@ input(name="{{ __rsyslog_input.name }}" type="imrelp" port="{{ __rsyslog_input.port | d(20514) | int }}" {% if ansible_distribution in ['CentOS', 'RedHat'] and - ansible_distribution_major_version is version('7', '==') %} + ansible_distribution_major_version is version('7', '>') %} maxDataSize="{{ __rsyslog_input.max_data_size | d(logging_max_message_size) | int }}" {% endif %} {% if __rsyslog_input.tls | default(true) %}