Maison numérique souveraine (offres maison-obnl + cabinet). Tâches découpées : paquets → php (512M + TLS PG) → install (occ, PG verify-full) → exposition (vhost .mjs) → configure (overwrite/redis/anti-SSRF/import CA) → OIDC user_oidc → Collabora richdocuments (WOPI split URL) → thème Alliance (ciel étoilé). Chaque réglage encode un piège prouvé sur collab-01 : imagick Debian 13, PGSSLMODE dans php-fpm, MIME .mjs, allow_local_remote_servers (SSRF), import root step-ca, memory_limit 512M, public_wopi_url après activate-config… Version épinglée (robustesse). ansible-lint profil production : 0 échec. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
22 lines
626 B
YAML
22 lines
626 B
YAML
---
|
|
- name: Deployer le vhost nginx Nextcloud (MIME .mjs correct)
|
|
ansible.builtin.template:
|
|
src: nginx-nextcloud.conf.j2
|
|
dest: /etc/nginx/sites-available/nextcloud
|
|
owner: root
|
|
group: root
|
|
mode: "0644"
|
|
notify: Recharger nginx nextcloud
|
|
|
|
- name: Activer le vhost Nextcloud
|
|
ansible.builtin.file:
|
|
src: /etc/nginx/sites-available/nextcloud
|
|
dest: /etc/nginx/sites-enabled/nextcloud
|
|
state: link
|
|
notify: Recharger nginx nextcloud
|
|
|
|
- name: Retirer le vhost nginx par defaut
|
|
ansible.builtin.file:
|
|
path: /etc/nginx/sites-enabled/default
|
|
state: absent
|
|
notify: Recharger nginx nextcloud
|