Enable check mode in DNS Cleanup tasks (#9472)

This commit is contained in:
emiran-orange 2022-11-11 04:58:09 +01:00 committed by GitHub
parent 6ca89c80af
commit df6da52195
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 @@
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']