- name: "Launch the site's containers" docker_compose: project_src: "{{ sites_path }}/{{ item.slug }}" state: present build: yes restarted: yes tags: docker - name: "Symlink nginx configuration to sites-enabled" file: src: "/etc/nginx/sites-available/{{ item.url }}" dest: "/etc/nginx/sites-enabled/{{ item.url }}" state: link become: yes tags: nginx - name: Verify nginx configuration command: "nginx -t" become: yes tags: nginx - name: Restart nginx service service: name: nginx state: restarted become: yes tags: nginx