- 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