From 3d2aed2c2d63ed3c60c650e4fc9fa931368cd5f2 Mon Sep 17 00:00:00 2001 From: Dmitriy Rabotyagov Date: Mon, 9 Sep 2019 20:00:28 +0300 Subject: [PATCH] Use version test instead of version_compare This test was changed to 'version' in ansible 2.5 [1]. [1] https://docs.ansible.com/ansible/2.8/user_guide/playbooks_tests.html#version-comparison Change-Id: I21efa77fc743f9530d307dc06c8a345475d35dfa --- .../roles/elastic_auditbeat/templates/auditbeat.yml.j2 | 2 +- .../roles/elastic_auditbeat/templates/auditbeat.yml.j2 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/elk_metrics_6x/roles/elastic_auditbeat/templates/auditbeat.yml.j2 b/elk_metrics_6x/roles/elastic_auditbeat/templates/auditbeat.yml.j2 index c0c164e2..c8954ad5 100644 --- a/elk_metrics_6x/roles/elastic_auditbeat/templates/auditbeat.yml.j2 +++ b/elk_metrics_6x/roles/elastic_auditbeat/templates/auditbeat.yml.j2 @@ -33,7 +33,7 @@ auditbeat.modules: # The auditd module collects events from the audit framework in the Linux # kernel. You need to specify audit rules for the events that you want to audit. - module: auditd -{% if ansible_kernel is version_compare('4.4', '>=') %} +{% if ansible_kernel is version('4.4', '>=') %} socket_type: {{ (apply_security_hardening | default(true) | bool) | ternary('multicast', 'unicast') }} {% endif %} resolve_ids: true diff --git a/elk_metrics_7x/roles/elastic_auditbeat/templates/auditbeat.yml.j2 b/elk_metrics_7x/roles/elastic_auditbeat/templates/auditbeat.yml.j2 index c0c164e2..c8954ad5 100644 --- a/elk_metrics_7x/roles/elastic_auditbeat/templates/auditbeat.yml.j2 +++ b/elk_metrics_7x/roles/elastic_auditbeat/templates/auditbeat.yml.j2 @@ -33,7 +33,7 @@ auditbeat.modules: # The auditd module collects events from the audit framework in the Linux # kernel. You need to specify audit rules for the events that you want to audit. - module: auditd -{% if ansible_kernel is version_compare('4.4', '>=') %} +{% if ansible_kernel is version('4.4', '>=') %} socket_type: {{ (apply_security_hardening | default(true) | bool) | ternary('multicast', 'unicast') }} {% endif %} resolve_ids: true