forked from data.coop/ansible
29 lines
832 B
YAML
29 lines
832 B
YAML
# vim: ft=yaml.ansible
|
|
---
|
|
- name: Set up external services network
|
|
docker_network:
|
|
name: external_services
|
|
|
|
- name: Deploy all services
|
|
include_tasks:
|
|
file: block.yml
|
|
vars:
|
|
service:
|
|
name: "{{ item }}"
|
|
vars: "{{ services[item] }}"
|
|
loop: "{{ services_include }}"
|
|
when: single_service is not defined and
|
|
(item.vars.disabled_in_vagrant is not defined or
|
|
not (item.vars.disabled_in_vagrant and vagrant))
|
|
|
|
- name: Deploy single service
|
|
include_tasks:
|
|
file: block.yml
|
|
vars:
|
|
service:
|
|
name: "{{ single_service }}"
|
|
vars: "{{ services[single_service] }}"
|
|
when: single_service is defined and single_service in services and
|
|
(services[single_service].disabled_in_vagrant is not defined or
|
|
not (services[single_service].disabled_in_vagrant and vagrant))
|