19 lines
480 B
YAML
19 lines
480 B
YAML
- 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
|