From cc67ac927437ce04953ca45507849dad243c3747 Mon Sep 17 00:00:00 2001 From: Alexander Weidinger Date: Mon, 19 Apr 2021 01:15:36 +0200 Subject: [PATCH] ci(preparations): disable IPv6 for the Ubuntu-18.04 test setup --- unbound/_test_dependencies.sls | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/unbound/_test_dependencies.sls b/unbound/_test_dependencies.sls index 1670f22..6770ca4 100644 --- a/unbound/_test_dependencies.sls +++ b/unbound/_test_dependencies.sls @@ -1,6 +1,16 @@ -{%- if grains['os'] == 'Ubuntu' %} +{%- if grains['os'] == 'Ubuntu' or grains['os_family'] == 'Arch' %} unbound-_test_dependencies-stop-systemd-resolved: service.dead: - name: systemd-resolved - enable: False {%- endif %} + +{%- if grains.get('osfinger', '') == 'Ubuntu-18.04' %} +unbound-_test_dependencies-no-ipv6: + cmd.run: + - name: 'echo " do-ip6: no" >> /etc/unbound/unbound.conf' + - require: + - file: unbound-config-file-file-managed + - require_in: + - service: unbound-service-running-service-running +{%- endif %}