17 lines
521 B
YAML
17 lines
521 B
YAML
---
|
|
- name: Create Docker network for services
|
|
docker_network:
|
|
name: services
|
|
|
|
- name: Deploy services
|
|
include_tasks: "services/{{ item.service.file }}"
|
|
loop: "{{ services | dict2items(value_name='service') }}"
|
|
when: single_service is not defined and
|
|
item.service.file is defined
|
|
|
|
- name: Deploy 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
|