- name: docker directory file: path: /opt/{{ docker_ldapmanager_service_id }}/ state: directory - name: prepare docker-compose.yml template: src: "{{ item }}" dest: /opt/{{ docker_ldapmanager_service_id }}/ with_items: - docker-compose.yml - php.ini - ldapmanager.env notify: docker-compose-up