This commit is contained in:
Antoine Ouvrard
2021-05-17 10:31:00 +02:00
parent 7442828ccd
commit db573babed
13 changed files with 19 additions and 14 deletions
+5 -2
View File
@@ -1,10 +1,12 @@
---
- name: Installation de snapd
apt:
name:
- snapd
state: present
- name: Initialisation de snap et installtion de certbot (prendre bien 5min, soyez patient)
- name: Initialisation de snap et installtion de certbot
(prend bien 5min, soyez patient)
command: "{{ item }}"
loop:
- snap install core
@@ -12,4 +14,5 @@
- snap install --classic certbot
- name: Création du certificat SSL
command: /snap/bin/certbot certonly --standalone -d {{ inventory_hostname }} -m supervision@nereide.fr --agree-tos --non-interactive
# yamllint disable-line rule:line-length
command: /snap/bin/certbot certonly --standalone -d {{ inventory_hostname }} -m supervision@nereide.fr --agree-tos --non-interactive
+2 -4
View File
@@ -26,7 +26,7 @@
owner: turnserver
group: turnserver
state: directory
recurse: yes
recurse: true
loop:
- /etc/letsencrypt/live
- /etc/letsencrypt/archive
@@ -40,10 +40,8 @@
- name: Ajout des capabilities à coturn
lineinfile:
path: /etc/systemd/system/coturn.service.d/override.conf
create: yes
create: true
line: |
[Service]
AmbientCapabilities=CAP_NET_BIND_SERVICE
notify: restart coturn