Idempotency fixes (#1838)

This commit is contained in:
Matthew Mosesohn
2017-10-25 21:19:40 +01:00
committed by GitHub
parent 7123956ecd
commit 86fb669fd3
9 changed files with 25 additions and 8 deletions

View File

@@ -16,6 +16,7 @@
- name: "Gen_certs | Get etcd certificate serials"
shell: "openssl x509 -in {{ etcd_cert_dir }}/node-{{ inventory_hostname }}.pem -noout -serial | cut -d= -f2"
register: "etcd_client_cert_serial_result"
changed_when: false
when: inventory_hostname in groups['k8s-cluster']|union(groups['etcd'])|union(groups['calico-rr']|default([]))|unique|sort
- name: Set etcd_client_cert_serial