Skip to content
Snippets Groups Projects
Unverified Commit df6da521 authored by emiran-orange's avatar emiran-orange Committed by GitHub
Browse files

Enable check mode in DNS Cleanup tasks (#9472)

parent 6ca89c80
No related branches found
No related tags found
No related merge requests found
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
command: "{{ kubectl }} get deploy -n kube-system coredns -o jsonpath='{ .spec.template.metadata.annotations.createdby }'" command: "{{ kubectl }} get deploy -n kube-system coredns -o jsonpath='{ .spec.template.metadata.annotations.createdby }'"
register: createdby_annotation_deploy register: createdby_annotation_deploy
changed_when: false changed_when: false
check_mode: false
ignore_errors: true # noqa ignore-errors ignore_errors: true # noqa ignore-errors
when: when:
- dns_mode in ['coredns', 'coredns_dual'] - dns_mode in ['coredns', 'coredns_dual']
...@@ -12,6 +13,7 @@ ...@@ -12,6 +13,7 @@
command: "{{ kubectl }} get svc -n kube-system coredns -o jsonpath='{ .metadata.annotations.createdby }'" command: "{{ kubectl }} get svc -n kube-system coredns -o jsonpath='{ .metadata.annotations.createdby }'"
register: createdby_annotation_svc register: createdby_annotation_svc
changed_when: false changed_when: false
check_mode: false
ignore_errors: true # noqa ignore-errors ignore_errors: true # noqa ignore-errors
when: when:
- dns_mode in ['coredns', 'coredns_dual'] - dns_mode in ['coredns', 'coredns_dual']
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment