diff --git a/roles/docker_wordpress/tasks/main.yml b/roles/docker_wordpress/tasks/main.yml index 578d52c..528bff6 100644 --- a/roles/docker_wordpress/tasks/main.yml +++ b/roles/docker_wordpress/tasks/main.yml @@ -26,10 +26,12 @@ group: wheel mode: '0644' + - name: Restart Docker # Unfortunately, this is necessary, we need to improve the functioning of iptable before + service: name=docker state=restarted + - name: Launch containers with_items: "{{ wpdocker }}" - command: "echo 'docker-compose -f {{ wpdocker_root_dir }}/conf/{{ item.wpdocker_name }}/docker-compose.yml up -d'" - # command: "docker-compose -f {{ wpdocker_root_dir }}/conf/{{ item.wpdocker_name }}/docker-compose.yml" up -d + command: "docker-compose -f {{ wpdocker_root_dir }}/conf/{{ item.wpdocker_name }}/docker-compose.yml up -d" # - name: Send an welcome email message # TODO