ansible/roles/fluidd/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
548 B
YAML

---
- name: Create fluidd directory
file:
path: "{{ fluidd_dir }}"
owner: www-data
group: www-data
state: directory
- name: Get fluidd src
unarchive:
remote_src: yes
src: https://github.com/fluidd-core/fluidd/releases/latest/download/fluidd.zip
dest: "{{ fluidd_dir }}"
group: www-data
- name: Copy vhost
template:
src: vhost.j2
dest: /etc/nginx/sites-available/fluidd
- name: Enable vhost
file:
src: /etc/nginx/sites-available/fluidd
dest: /etc/nginx/sites-enabled/fluidd
state: link