infra/roles/provision/tasks/main.yml
2018-10-02 10:16:46 +04:00

12 lines
323 B
YAML

---
- 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}}"