Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
---
- import_role:
name: _web_app
- name: Restic Role
import_role:
name: restic
tags: "restic_humhub"
- name: "template {{ rev_proxy }}_app.j2 {{ app_instance_id }}"
template:
src: "{{ rev_proxy }}_app.j2"
dest: "/etc/{{ rev_proxy }}/sites-available/{{ app_instance_id }}.conf"
when: app_wsgi == "no"
notify: reload {{ rev_proxy }} web_app
tags:
- garradin_rev_proxy
- name: Check if app folder exists
stat:
path: "{{ app_instance_root }}"
register: app_folder
- name: Check if data folder exists
stat:
path: "{{ app_data }}"
register: data_folder
tags: "data_setup"
- name: "dir {{ app_data }}"
file:
path: "{{ app_data }}"
state: directory
mode: 0700
group: "www-data"
owner: "{{ app_user }}"
when: data_folder.stat.exists == false and app_folder.stat.exists
tags: "data_setup"
- name: Configuring garradin if app folder exists
import_tasks: configure.yml
when: app_folder.stat.exists
tags:
- garradin_configure