ansible/roles/docker/tasks/services.yml

15 lines
549 B
YAML

---
- name: setup external services network
docker_network:
name: external_services
#- name: setup services
# include_tasks: "services/{{ item.value.file }}"
# loop: "{{ services | dict2items }}"
# when: item.key in enabled_services and item.value.file is defined and item.value.disabled_in_vagrant is not defined
- name: setup services
include_tasks: "services/{{ services[item].file }}"
loop: "{{ enabled_services }}"
when: item in services and services[item].file is defined and services[item].disabled_in_vagrant is not defined