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

10 lines
344 B
YAML

---
- name: "prepare {{ app.name }} environment on {{ inventory_hostname_short }}"
set_fact: {"{{ item.key }}":"{{ item.value }}"}
with_dict: "{{ app.vars }}"
when: app.vars is defined
- name: "apply {{ app.name }} role on {{ inventory_hostname_short }}"
include_role: name="{{app.name}}"
when: inventory_hostname_short in app.binds