ansible-role-docker_roundcube/tasks/main.yml

22 lines
618 B
YAML
Raw Normal View History

2022-05-01 21:22:16 +02:00
- name: docker directory
file:
path: /opt/{{ docker_roundcube_service_id }}/
state: directory
- name: config directory
file:
path: /opt/{{ docker_roundcube_service_id }}/config
state: directory
- name: prepare docker-compose.yml and config
template:
src: "{{ item.src }}"
dest: "{{ item.dest }}"
with_items:
- { src: docker-compose.yml, dest: "/opt/{{ docker_roundcube_service_id }}/" }
- { src: php.ini, dest: "/opt/{{ docker_roundcube_service_id }}/" }
- { src: custom_config.php, dest: "/opt/{{ docker_roundcube_service_id }}/config/" }
notify: docker-compose-up