Remove old roles and fix idempotency issues

This commit is contained in:
Paul-Henri Froidmont 2018-09-26 19:24:36 +02:00
parent f468fd3e34
commit 92be60ad51
85 changed files with 38 additions and 5890 deletions

View file

@ -28,3 +28,4 @@
until: result.stdout.find("chmod666/keepalived") != -1
retries: 18
delay: 10
changed_when: no

View file

@ -54,5 +54,6 @@
until: result.stdout.find("Ready") == 0
retries: 36
delay: 10
changed_when: no
- meta: flush_handlers

View file

@ -37,3 +37,4 @@
until: result.stdout.find("Ready") == 0
retries: 36
delay: 10
changed_when: no

View file

@ -3,6 +3,7 @@
shell: "ps -ef | grep [k]ube-proxy"
register: kube_proxy_running
ignore_errors: True
changed_when: no
- block:
- name: Joining cluster on other nodes

View file

@ -54,6 +54,7 @@
until: result.stdout.find("2") != -1
retries: 180
delay: 10
changed_when: no
when: inventory_hostname == initial_master
- include: kubeadm-token.yml
@ -70,6 +71,7 @@
until: result.stdout.find("Ready") == 0
retries: 36
delay: 10
changed_when: no
delegate_to: "{{ initial_master }}"
- debug: var=result