diff --git a/roles/docker_wordpress/tasks/main.yml b/roles/docker_wordpress/tasks/main.yml index 9c931a5..f2aff0b 100644 --- a/roles/docker_wordpress/tasks/main.yml +++ b/roles/docker_wordpress/tasks/main.yml @@ -2,11 +2,12 @@ - name: Deploy docker-compose YML file with_items: "{{ wp_docker }}" - src: docker-compose.yml.j2 - dest: "{{ wp_docker_root_dir }}/{{ item.wp_docker_name }}/docker-compose.yml" - owner: bin - group: wheel - mode: '0644' + template: + src: docker-compose.yml.j2 + dest: "{{ wp_docker_root_dir }}/{{ item.wp_docker_name }}/docker-compose.yml" + owner: bin + group: wheel + mode: '0644' - name: Launch Wordpress containers with_items: "{{ wp_docker }}"