ansible/roles/mainsail/tasks/main.yml
Thomas Schmid aa6286623d add klipper related roles and noodlehub role
Signed-off-by: Thomas Schmid <tom@lfence.de>
2022-01-20 20:40:32 +01:00

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