From f1dde299fba740fbd405671c3ea9fef418ca2c40 Mon Sep 17 00:00:00 2001 From: Will Foster Date: Fri, 24 Jan 2020 11:13:27 +0100 Subject: [PATCH] Make settings for disabling ipv6 more flexible. We should ignore errors on tasks that aren't fatal to execution of the playbook and may not exit cleanly after the first time. --- install/roles/logstash/tasks/main.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/install/roles/logstash/tasks/main.yml b/install/roles/logstash/tasks/main.yml index e14563f..0adee9c 100644 --- a/install/roles/logstash/tasks/main.yml +++ b/install/roles/logstash/tasks/main.yml @@ -114,6 +114,7 @@ - net.ipv6.conf.all.disable_ipv6 - net.ipv6.conf.default.disable_ipv6 - net.ipv6.conf.lo.disable_ipv6 + ignore_errors: true - name: Determine if ipv6 is a loadable module command: /sbin/lsmod | grep ipv6 | grep -v nf @@ -125,6 +126,7 @@ notify: - rmmodipv6 when: ansible_os_family == 'RedHat' and ipv6loadable.rc != 1 + ignore_errors: true - include: ipv6-grub-disable.yml @@ -142,6 +144,7 @@ - restart Network - restart NetworkManager when: ansible_os_family == 'RedHat' + ignore_errors: true # X-Pack requires additional authentication - name: Load filebeat JSON index template (X-Pack enabled)