fix add nodes to the cluster

This commit is contained in:
Smana
2016-04-07 17:08:39 +02:00
parent e69b9f6dcb
commit 5c22133492
4 changed files with 79 additions and 26 deletions

View File

@@ -1,4 +1,6 @@
---
- include: check-certs.yml
- name: Make sure the certificate directory exits
file:
path={{ kube_cert_dir }}
@@ -30,12 +32,6 @@
when: inventory_hostname in "{{ groups['kube-master'] }}"
notify: set secret_changed
- name: Check if a certificate already exists
stat:
path: "{{ kube_cert_dir }}/ca.pem"
register: kubecert
- include: gen_certs.yml
when: not kubecert.stat.exists
- include: gen_tokens.yml