infra/roles/apps/tasks/prepare.yml

10 lines
344 B
YAML
Raw Normal View History

2018-10-02 09:12:23 +03:00
---
- 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