Ajout de divers setup*

This commit is contained in:
Navas 2023-12-10 18:40:11 +01:00
parent ead7ee49b2
commit 5dbf2fd8a3
23 changed files with 378 additions and 2 deletions

24
setup_collabora.yml Normal file
View file

@ -0,0 +1,24 @@
---
- name: setup collabora
hosts: collabora
roles:
- role: docker_collabora
tags: docker_collabora
- name: setup reverse_proxy
hosts: rp
tasks:
- name: conf reverse proxy hors modele
template:
src: rp_collabora.conf
dest: /etc/apache2/sites-available/
register: conf_rp
- name: active la configuration
shell: |
a2ensite rp_collabora.conf
apache2ctl configtest && systemctl reload apache2
when: conf_rp.changed

12
setup_element.yml Normal file
View file

@ -0,0 +1,12 @@
---
- name: setup element
hosts: element
roles:
- role: docker_element
tags: docker_element
- name: setup reverse_proxy
hosts: rp
roles:
- role: rp_vhost
tags: rp_vhost

14
setup_etherpad.yml Normal file
View file

@ -0,0 +1,14 @@
---
- name: setup etherpad
hosts: etherpad
roles:
- role: docker_etherpad
tags: docker_etherpad
- name: setup reverse_proxy
hosts: rp
roles:
- role: rp_vhost
tags: rp_vhost

View file

@ -1,6 +1,6 @@
---
- name: setup website
hosts: website
- name: setup grav
hosts: grav
roles:
- role: docker_grav
tags: docker_grav

14
setup_jitsimeet.yml Normal file
View file

@ -0,0 +1,14 @@
---
- name: setup jitsimeet
hosts: jitsimeet
roles:
- role: docker_jitsimeet
tags: docker_jitsimeet
- name: setup reverse_proxy
hosts: rp
roles:
- role: rp_vhost
tags: rp_vhost

13
setup_kanboard.yml Normal file
View file

@ -0,0 +1,13 @@
---
- name: setup kanboard
hosts: kanboard
roles:
- role: docker_kanboard
tags: docker_kanboard
- name: setup reverse_proxy
hosts: rp
roles:
- role: rp_vhost
tags: rp_vhost

13
setup_keycloak.yml Normal file
View file

@ -0,0 +1,13 @@
---
- name: setup keycloak
hosts: keycloak
roles:
- role: docker_keycloak
tags: docker_keycloak
- name: setup reverse_proxy
hosts: rp
roles:
- role: rp_vhost
tags: rp_vhost

14
setup_ldapmanager.yml Normal file
View file

@ -0,0 +1,14 @@
---
- name: setup ldapmanager
hosts: ldapmanager
roles:
- role: docker_ldapmanager
tags: docker_ldapmanager
- name: setup reverse_proxy
hosts: rp
roles:
- role: rp_vhost
tags: rp_vhost

14
setup_listmonk.yml Normal file
View file

@ -0,0 +1,14 @@
---
- name: setup listmonk
hosts: listmonk
roles:
- role: docker_listmonk
tags: docker_listmonk
- name: setup reverse_proxy
hosts: rp
roles:
- role: rp_vhost
tags: rp_vhost

13
setup_loomio.yml Normal file
View file

@ -0,0 +1,13 @@
---
- name: setup loomio
hosts: loomio
roles:
- role: docker_loomio
tags: docker_loomio
- name: setup reverse_proxy
hosts: rp
roles:
- role: rp_vhost
tags: rp_vhost

13
setup_mastodon.yml Normal file
View file

@ -0,0 +1,13 @@
---
- name: setup mastodon
hosts: mastodon
roles:
- role: docker_mastodon
tags: docker_mastodon
- name: setup reverse_proxy
hosts: rp
roles:
- role: rp_vhost
tags: rp_vhost

17
setup_matomo.yml Normal file
View file

@ -0,0 +1,17 @@
---
- name: setup matomo
hosts: matomo
roles:
- role: docker_matomo
tags: docker_matomo
- name: setup reverse_proxy
hosts: rp
roles:
- role: rp_vhost
tags: rp_vhost

14
setup_mobilizon.yml Normal file
View file

@ -0,0 +1,14 @@
---
- name: setup mobilizon
hosts: mobilizon
roles:
- role: docker_mobilizon
tags: docker_mobilizon
- name: setup reverse_proxy
hosts: rp
roles:
- role: rp_vhost
tags: rp_vhost

60
setup_monitoring.yml Normal file
View file

@ -0,0 +1,60 @@
---
- name: setup cadvisor
hosts: docker_cadvisor
roles:
- role: docker_cadvisor
tags: docker_cadvisor
- name: setup docker nodeexporter
hosts: docker_nodeexporter
roles:
- role: docker_nodeexporter
tags: docker_nodeexporter
- name: setup local nodeexporter
hosts: nodeexporter
roles:
- role: nodeexporter
tags: nodeexporter
- name: setup prometheus
hosts: docker_prometheus
roles:
- role: docker_prometheus
tags: docker_prometheus
- name: setup grafana
hosts: docker_grafana
roles:
- role: docker_grafana
tags: docker_grafana
- name: setup reverse_proxy grafana
hosts: rp_grafana
roles:
- role: rp_vhost
tags: rp_grafana
- name: setup healthchecks
hosts: docker_healthchecks
roles:
- role: docker_healthchecks
tags: docker_healthchecks
- name: setup reverse_proxy healthchecks
hosts: rp_healthchecks
roles:
- role: rp_vhost
tags: rp_healthchecks
- name: setup uptimekuma
hosts: docker_uptimekuma
roles:
- role: docker_uptimekuma
tags: docker_uptimekuma
- name: setup reverse_proxy uptimekuma
hosts: rp_uptimekuma
roles:
- role: rp_vhost
tags: rp_uptimekuma

14
setup_nextcloud.yml Normal file
View file

@ -0,0 +1,14 @@
---
- name: setup nextcloud
hosts: nextcloud
roles:
- role: docker_nextcloud
tags: docker_nextcloud
- name: setup reverse_proxy
hosts: rp
roles:
- role: rp_vhost
tags: rp_vhost

7
setup_openldap.yml Normal file
View file

@ -0,0 +1,7 @@
---
- name: setup openldap
hosts: openldap
roles:
- role: docker_openldap
tags: docker_openldap

13
setup_paheko.yml Normal file
View file

@ -0,0 +1,13 @@
---
- name: setup paheko
hosts: paheko
roles:
- role: docker_paheko
tags: docker_paheko
- name: setup reverse_proxy
hosts: rp
roles:
- role: rp_vhost
tags: rp_vhost

14
setup_roundcube.yml Normal file
View file

@ -0,0 +1,14 @@
---
- name: setup roundcube
hosts: roundcube
roles:
- role: docker_roundcube
tags: docker_roundcube
- name: setup reverse_proxy
hosts: rp
roles:
- role: rp_vhost
tags: rp_vhost

26
setup_synapse.yml Normal file
View file

@ -0,0 +1,26 @@
---
- name: setup synapse
hosts: synapse
roles:
- role: docker_synapse
tags: docker_synapse
- name: setup reverse_proxy
hosts: rp
roles:
- role: rp_vhost
tags: rp_vhost
tasks:
- name: conf reverse proxy hors modele
template:
src: rp_matrix-inter-servers.conf
dest: /etc/apache2/sites-available/
register: conf_rp
- name: active la configuration
shell: |
a2ensite rp_matrix-inter-servers.conf
apache2ctl configtest && systemctl reload apache2
when: conf_rp.changed

14
setup_vaultwarden.yml Normal file
View file

@ -0,0 +1,14 @@
---
- name: setup vaultwarden
hosts: vaultwarden
roles:
- role: docker_vaultwarden
tags: docker_vaultwarden
- name: setup reverse_proxy
hosts: rp
roles:
- role: rp_vhost
tags: rp_vhost

View file

@ -0,0 +1,6 @@
---
- name: setup webfingerserver
hosts: webfingerserver
roles:
- role: docker_webfingerserver
tags: docker_webfingerserver

13
setup_wikijs.yml Normal file
View file

@ -0,0 +1,13 @@
---
- name: setup wikijs
hosts: wikijs
roles:
- role: docker_wikijs
tags: docker_wikijs
- name: setup reverse_proxy
hosts: rp
roles:
- role: rp_vhost
tags: rp_vhost

34
setup_wordpress.yml Normal file
View file

@ -0,0 +1,34 @@
---
- name: backup website
hosts: wordpress
tasks:
- import_role:
name: docker_wordpress
tasks_from: backup
tags: docker_wordpress
when: do_backup is true
- name: setup website
hosts: wordpress
roles:
- role: docker_wordpress
tags: docker_wordpress
when: do_restore is not true
- name: setup reverse_proxy
hosts: rp
roles:
- role: rp_vhost
tags: rp_vhost
when: do_restore is not true
- name: restore website
hosts: wordpress
tasks:
- import_role:
name: docker_wordpress
tasks_from: restore
tags: docker_wordpress
when: do_restore is true