This repository has been archived on 2023-12-29. You can view files and clone it, but cannot push or open issues or pull requests.
pi-ansible/roles/docker/tasks/services.yml
2022-12-26 01:19:54 +01:00

19 lines
522 B
YAML

# vim: ft=yaml.ansible
---
- name: Create base directory for Docker volumes
file:
name: "{{ base_volume }}"
owner: "{{ ansible_user }}"
mode: u=rwx,g=rx,o=rx
state: directory
- name: Deploy services
include_tasks: "services/{{ item.service }}.yml"
loop: "{{ services | dict2items(key_name='service') }}"
when: single_service is not defined
- name: Deploy single service
include_tasks: "services/{{ single_service }}.yml"
when: single_service is defined and
single_service in services