configuration.yml 889 Bytes
Newer Older
nono's avatar
nono committed
1
---
nono's avatar
nono committed
2
3
4
5
6

# Voir : https://github.com/hedgedoc/hedgedoc/blob/master/docs/configuration.md
# et : https://github.com/hedgedoc/hedgedoc/blob/880af8d4f80b9e1dcaa30014d4ed5c41e351b564/docs/setup/reverse-proxy.md
- name: Configuration du service HedgeDocs
  template:
nono's avatar
nono committed
7
    src: files/config.json.j2
8
    dest: /home/hedgedocs/hedgedoc/config.json
nono's avatar
nono committed
9
    owner: hedgedocs
10
    group: www-data
nono's avatar
nono committed
11
    mode: 0644
nono's avatar
nono committed
12
13

- name: Configuration du fichier SystemD
nono's avatar
nono committed
14
  template:
nono's avatar
nono committed
15
    src: files/hedgedocs.service
nono's avatar
nono committed
16
    dest: /etc/systemd/system/hedgedocs.service
nono's avatar
nono committed
17
18
    owner: root
    group: root
nono's avatar
nono committed
19
    mode: 0644
nono's avatar
nono committed
20
21
22
23
24
25
26

- name: Activation de la configuration systemd
  systemd:
    state: started
    name: hedgedocs
    enabled: yes

27
28
- name: Force systemd à relire les configs
  ansible.builtin.systemd:
nono's avatar
nono committed
29
    daemon_reload: yes
30
31

- name: Reload nginx
nono's avatar
nono committed
32
33
34
35
  systemd:
    state: reloaded
    name: nginx
    enabled: yes
36
37

# And we're done !