Browse Source

Move credentials pre-check

pull/2570/head
avoidik 6 years ago
parent
commit
ab8760cc83
2 changed files with 8 additions and 8 deletions
  1. 8
      roles/kubernetes/node/tasks/main.yml
  2. 8
      roles/kubernetes/preinstall/tasks/main.yml

8
roles/kubernetes/node/tasks/main.yml

@ -134,6 +134,14 @@
tags:
- kube-proxy
- include_tasks: "{{ cloud_provider }}-credential-check.yml"
when:
- cloud_provider is defined
- cloud_provider in [ 'openstack', 'azure', 'vsphere' ]
tags:
- cloud-provider
- facts
- name: Write cloud-config
template:
src: "{{ cloud_provider }}-cloud-config.j2"

8
roles/kubernetes/preinstall/tasks/main.yml

@ -71,14 +71,6 @@
- cloud-provider
- facts
- include_tasks: "{{ cloud_provider }}-credential-check.yml"
when:
- cloud_provider is defined
- cloud_provider in [ 'openstack', 'azure', 'vsphere' ]
tags:
- cloud-provider
- facts
- name: Create cni directories
file:
path: "{{ item }}"

Loading…
Cancel
Save