infra/roles/provision/tasks/main.yml

12 lines
323 B
YAML
Raw Normal View History

2018-10-02 09:12:23 +03:00
---
- name: validate nodes providers
fail: msg="provider '{{item.provider}}' is not supported"
when: item.provider not in provision_supported_providers
with_items: "{{provision_nodes}}"
- name: provision nodes
include_tasks: "{{item.provider}}.yml"
vars:
node: "{{item}}"
with_items: "{{provision_nodes}}"