Skip to content

Commit

Permalink
Make settings for disabling ipv6 more flexible.
Browse files Browse the repository at this point in the history
We should ignore errors on tasks that aren't fatal to execution
of the playbook and may not exit cleanly after the first time.
  • Loading branch information
sadsfae committed Jan 24, 2020
1 parent da102a7 commit f1dde29
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions install/roles/logstash/tasks/main.yml
Expand Up @@ -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
Expand All @@ -125,6 +126,7 @@
notify:
- rmmodipv6
when: ansible_os_family == 'RedHat' and ipv6loadable.rc != 1
ignore_errors: true

- include: ipv6-grub-disable.yml

Expand All @@ -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)
Expand Down

0 comments on commit f1dde29

Please sign in to comment.