26 lines
568 B
YAML
26 lines
568 B
YAML
---
|
|
|
|
- name: Create mainsail directory
|
|
file:
|
|
path: "{{ mainsail_dir }}"
|
|
owner: www-data
|
|
group: www-data
|
|
state: directory
|
|
|
|
- name: Get Mainsail src
|
|
unarchive:
|
|
remote_src: yes
|
|
src: https://github.com/mainsail-crew/mainsail/releases/latest/download/mainsail.zip
|
|
dest: "{{ mainsail_dir }}"
|
|
group: www-data
|
|
|
|
- name: Copy vhost
|
|
template:
|
|
src: vhost.j2
|
|
dest: /etc/nginx/sites-available/mainsail
|
|
|
|
- name: Enable vhost
|
|
file:
|
|
src: /etc/nginx/sites-available/mainsail
|
|
dest: /etc/nginx/sites-enabled/mainsail
|
|
state: link |