automation/deployer/roles/deploy/tasks/drupal.yml
2020-05-02 07:51:39 +02:00

27 lines
585 B
YAML

- 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