From df6da5219503ca9dbb7d3b67c55502df0c1e940a Mon Sep 17 00:00:00 2001 From: emiran-orange <71817149+emiran-orange@users.noreply.github.com> Date: Fri, 11 Nov 2022 04:58:09 +0100 Subject: [PATCH] Enable check mode in DNS Cleanup tasks (#9472) --- roles/kubernetes-apps/ansible/tasks/cleanup_dns.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/roles/kubernetes-apps/ansible/tasks/cleanup_dns.yml b/roles/kubernetes-apps/ansible/tasks/cleanup_dns.yml index d4530c1b0..fef52461c 100644 --- a/roles/kubernetes-apps/ansible/tasks/cleanup_dns.yml +++ b/roles/kubernetes-apps/ansible/tasks/cleanup_dns.yml @@ -3,6 +3,7 @@ command: "{{ kubectl }} get deploy -n kube-system coredns -o jsonpath='{ .spec.template.metadata.annotations.createdby }'" register: createdby_annotation_deploy changed_when: false + check_mode: false ignore_errors: true # noqa ignore-errors when: - dns_mode in ['coredns', 'coredns_dual'] @@ -12,6 +13,7 @@ command: "{{ kubectl }} get svc -n kube-system coredns -o jsonpath='{ .metadata.annotations.createdby }'" register: createdby_annotation_svc changed_when: false + check_mode: false ignore_errors: true # noqa ignore-errors when: - dns_mode in ['coredns', 'coredns_dual']