--- - 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' - name: Launch Wordpress containers with_items: "{{ wp_docker }}" command: "docker-compose up -d -f {{ wp_docker_root_dir }}/{{ item.wp_docker_name }}/docker-compose.yml" # - name: Send an welcome email message # TODO