From a4402d0aed136e8845618dcf7211bc7f18447b9e Mon Sep 17 00:00:00 2001 From: Anton Nerozya Date: Wed, 7 Jun 2017 19:31:35 +0200 Subject: [PATCH] Additional checks for ansible dry-run (--check) mode --- roles/kubernetes/secrets/tasks/gen_certs_script.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/roles/kubernetes/secrets/tasks/gen_certs_script.yml b/roles/kubernetes/secrets/tasks/gen_certs_script.yml index 25f7065a9..50ff900c9 100644 --- a/roles/kubernetes/secrets/tasks/gen_certs_script.yml +++ b/roles/kubernetes/secrets/tasks/gen_certs_script.yml @@ -145,6 +145,7 @@ no_log: true changed_when: false check_mode: no + ignore_errors: "{{ ansible_check_mode }}" when: inventory_hostname in groups['kube-node'] and sync_certs|default(false) and inventory_hostname != groups['kube-master'][0]