--- - name: Create folders for each containers with_items: "{{ wp_docker }}" file: path: "{{ wp_docker_root_dir }}/{{ item.wp_docker_name }}" state: directory owner: bin group: wheel mode: '0644' - name: Deploy docker-compose YML file with_items: "{{ wp_docker }}" 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 PhpMyAdmin containers # with_items: "{{ wp_docker }}" # command: "docker-compose up -d -f {{ wp_docker_root_dir }}/pma_{{ item.wp_docker_name }}/docker-compose.yml" # - 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