choose between gce and aws cloud providers

This commit is contained in:
Smaine Kahlouch
2016-03-23 17:27:06 +01:00
parent f49926413a
commit 68fafd030d
7 changed files with 22 additions and 14 deletions

View File

@@ -46,6 +46,11 @@
owner: kube
when: ansible_service_mgr in ["sysvinit","upstart"]
- name: check cloud_provider value
fail:
msg: "If set the 'cloud_provider' var must be set eithe to 'gce' or 'aws'"
when: cloud_provider is defined and cloud_provider not in ['gce', 'aws']
- name: Create cni directories
file:
path: "{{ item }}"