2022-12-29 21:13:31 +00:00
|
|
|
# vim: ft=yaml.ansible
|
2019-01-19 13:56:23 +00:00
|
|
|
---
|
2018-06-24 13:16:56 +00:00
|
|
|
- name: setup external services network
|
|
|
|
docker_network:
|
|
|
|
name: external_services
|
2018-06-24 13:17:35 +00:00
|
|
|
|
2018-06-24 16:19:56 +00:00
|
|
|
- name: setup services
|
2022-11-26 21:13:51 +00:00
|
|
|
include_tasks: "services/{{ item.service.file }}"
|
|
|
|
loop: "{{ services | dict2items(value_name='service') }}"
|
2022-11-26 08:15:18 +00:00
|
|
|
when: single_service is not defined and
|
2022-11-26 21:13:51 +00:00
|
|
|
item.service.file is defined and
|
|
|
|
item.service.disabled_in_vagrant is not defined
|
2022-11-26 08:15:18 +00:00
|
|
|
|
|
|
|
- name: setup single service
|
|
|
|
include_tasks: "services/{{ services[single_service].file }}"
|
|
|
|
when: single_service is defined and
|
|
|
|
single_service in services and
|
|
|
|
services[single_service].file is defined and
|
|
|
|
services[single_service].disabled_in_vagrant is not defined
|