ansible/roles/docker/tasks/services.yml

12 lines
284 B
YAML

---
- name: setup external services network
docker_network:
name: external_services
- name: setup services
docker_service:
project_name: "{{ item }}"
definition:
"{{ lookup('file', 'composefiles/{{ item }}.yml') | from_yaml }}"
with_items: "{{ services }}"