ansible-role-docker_paheko/tasks/main.yml

20 lines
480 B
YAML
Raw Normal View History

2023-07-23 21:21:35 +02:00
- name: docker directory
file:
path: /opt/{{ docker_paheko_service_id }}/
state: directory
- name: docker data directory
file:
path: "{{ docker_paheko_data_dir }}/{{ docker_paheko_service_id }}/"
state: directory
register: _datadir
- name: prepare docker-compose.yml and files
template:
src: "{{ item }}"
dest: /opt/{{ docker_paheko_service_id }}/
with_items:
- docker-compose.yml
- config.local.php
notify: docker-compose-up