lint
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
---
|
||||
default:
|
||||
before_script:
|
||||
- pip3 install --user "ansible-lint[core,yamllint]"
|
||||
|
||||
@@ -5,4 +5,3 @@
|
||||
state: restarted
|
||||
daemon_reload: true
|
||||
enabled: true
|
||||
|
||||
|
||||
@@ -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
|
||||
# yamllint disable-line rule:line-length
|
||||
command: /snap/bin/certbot certonly --standalone -d {{ inventory_hostname }} -m supervision@nereide.fr --agree-tos --non-interactive
|
||||
@@ -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
|
||||
|
||||
|
||||
|
||||
@@ -18,7 +18,8 @@
|
||||
state: directory
|
||||
path: /usr/local/bin/
|
||||
mode: 0644
|
||||
- name: "télécharge de chromedriver pour la version {{ _latest_release.content }}"
|
||||
- name: "télécharge de chromedriver pour la version
|
||||
{{ _latest_release.content }}"
|
||||
unarchive:
|
||||
src: "http://chromedriver.storage.googleapis.com/{{ _latest_release.content }}/chromedriver_linux64.zip"
|
||||
dest: /usr/local/bin
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
|
||||
- name: Ajout du depot google
|
||||
apt_repository:
|
||||
# yamllint disable-line rule:line-length
|
||||
repo: deb [arch=amd64 signed-by=/etc/apt/trusted.gpg.d/google.gpg] http://dl.google.com/linux/chrome/deb/ stable main
|
||||
update_cache: true
|
||||
filename: google-chrome
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
|
||||
- name: Ajout du depot jitsi
|
||||
apt_repository:
|
||||
# yamllint disable-line rule:line-length
|
||||
repo: deb [signed-by=/etc/apt/trusted.gpg.d/jitsi.gpg] https://download.jitsi.org stable/
|
||||
update_cache: true
|
||||
|
||||
|
||||
@@ -44,6 +44,7 @@
|
||||
replace:
|
||||
path: /etc/nginx/sites-available/{{ item }}.conf
|
||||
regexp:
|
||||
# yamllint disable-line rule:line-length
|
||||
"[^?]ssl_certificate_key /etc/letsencrypt/live/{{ inventory_hostname }}.*$"
|
||||
replace:
|
||||
"ssl_certificate_key /etc/letsencrypt/live/{{ item }}/privkey.pem;"
|
||||
|
||||
Reference in New Issue
Block a user