26 lines
548 B
YAML
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 |