Additional checks for ansible dry-run (--check) mode

This commit is contained in:
Anton Nerozya 2017-06-07 19:31:35 +02:00
parent e41e67ea1d
commit d79e50d003

View file

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