From 5b76aa8f4fafc27c46063edc731f2790ad0485bd Mon Sep 17 00:00:00 2001 From: kkori Date: Wed, 21 Sep 2022 20:13:25 +0900 Subject: [PATCH] support removing options in resolvconf with tab separator --- roles/kubernetes/preinstall/tasks/0060-resolvconf.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/kubernetes/preinstall/tasks/0060-resolvconf.yml b/roles/kubernetes/preinstall/tasks/0060-resolvconf.yml index 2759b53e1ff..0f16960a2cb 100644 --- a/roles/kubernetes/preinstall/tasks/0060-resolvconf.yml +++ b/roles/kubernetes/preinstall/tasks/0060-resolvconf.yml @@ -31,7 +31,7 @@ backup: "{{ not resolvconf_stat.stat.islnk }}" with_nested: - "{{ [resolvconffile, base|default(''), head|default('')] | difference(['']) }}" - - [ 'search ', 'nameserver ', 'domain ', 'options ' ] + - [ 'search\s', 'nameserver\s', 'domain\s', 'options\s' ] notify: Preinstall | propagate resolvconf to k8s components - name: Remove search/domain/nameserver options after block @@ -42,7 +42,7 @@ backup: "{{ not resolvconf_stat.stat.islnk }}" with_nested: - "{{ [resolvconffile, base|default(''), head|default('')] | difference(['']) }}" - - [ 'search ', 'nameserver ', 'domain ', 'options ' ] + - [ 'search\s', 'nameserver\s', 'domain\s', 'options\s' ] notify: Preinstall | propagate resolvconf to k8s components - name: get temporary resolveconf cloud init file content