diff --git a/.gitignore b/.gitignore index e69de29..722d5e7 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +.vscode diff --git a/.vscode/settings.json b/.vscode/settings.json deleted file mode 100644 index 904d8da..0000000 --- a/.vscode/settings.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "search.exclude": { - "/playbooks/roles/": true, - "/playbooks/resources/": true, - }, -} diff --git a/README.md b/README.md index 68c92b4..4e16d2a 100644 --- a/README.md +++ b/README.md @@ -3,15 +3,13 @@ Folgende Geräte und Server werden duch dieses Ansible Repository verwaltet: * Diverse VMs auf dem ThinkCCCluster -* Diverse VMs auf dem Chaosknoten -Host-spezifische Konfigurationsdateien liegen unter `resources/` und werden für jeweils über eine `host_vars`-Datei im Inventory geladen. +Die Konfigurationsdateien liegen unter `playbooks/files/configs` bzw. `playbooks/templates/configs` und werden für Hosts jeweils in einer `host_vars`-Datei im Inventory geladen. ## Galaxy-Collections und -Rollen installieren Für einige Aspekte verwenden wir Rollen aus Ansible Galaxy. Die müssen zunächst installiert werden: - -```bash +``` ansible-galaxy install -r requirements.yml ``` @@ -19,29 +17,29 @@ ansible-galaxy install -r requirements.yml Grundsätzlich sollten Secrets vermieden werden. (Also z.B.: Nutze SSH Keys statt Passwort.) -Da Secrets aber durchaus doch gebraucht werden, werden diese dann in diesem Repo direkt aus dem [password-store](https://git.hamburg.ccc.de/CCCHH/password-store) (meist aus einem Sub-Eintrag des `noc/` Ordners) geladen. +Da Secrets aber durchaus doch gebraucht werden, werden diese dann in diesem Repo direkt aus dem [password-store](https://gitlab.hamburg.ccc.de/ccchh/password-store) (meist aus einem Sub-Eintrag des `noc/` Ordners) geladen. Dies geschieht mit Hilfe des `community.general.passwordstore` lookup Plugins. + ## Playbook nur für einzelne Hosts ausführen Ein paar der Hosts haben den selben Namen, was es etwas schwieriger macht, das Playbook nur für einen der Hosts auszuführen, z. B. `public-reverse-proxy`. Die Kombination aus `--inventory` und `--limit` führt zum Erfolg: - -```bash +``` ansible-playbook playbooks/deploy.yaml --inventory inventories/chaosknoten/hosts.yaml --limit public-reverse-proxy ``` ## Neuen Web-Service hinzufügen -Wir deployen Web-Services auf dem Chaosknoten hinter dem `public-reverse-proxy`. Der Service-Name `service.hamburg.ccc.de` sollte ein CNAME für `public-reverse-proxy.hamburg.ccc.de` und die Service-VM unter `service-intern.hamburg.ccc.de` mit einer `172.31.17.x`-Adresse erreichbar sein. +Wir deployen Web-Services hinter dem `public-reverse-proxy`. Der Service-Name `service.hamburg.ccc.de` ist ein CNAME für public-reverse-proxy.hamburg.ccc.de, und die Service-VM ist unter `service-intern.hamburg.ccc.de` mit einer `172.31.17.x`-Adresse erreichbar. Im Ansible-Repo müssen diese Sachen hinzugefügt werden: * `inventories/chaosknoten/hosts.yaml`: * SSH-Config für die neue VM unter all/children/debian_12/hosts * Einträge für die Rollen, die dieser Host haben soll, min. `certbot_hosts`, `nginx_hosts`, ggf. `docker_compose_hosts` * `inventories/chaosknoten/host_vars/`*host*`.yaml`: config vars für den neuen Host -* `resources/chaosknoten/public-reverse-proxy/nginx/acme_challenge.conf`: Liste der Hostnamen um den neuen Host erweitern, die hinter dem Reverse-Proxy stehen -* `resources/chaosknoten/public-reverse-proxy/nginx/nginx.conf`: Liste der Hostnamen um den neuen Host erweitern, die hinter dem Reverse-Proxy stehen -* `resources/chaosknoten/`*host*`/nginx/`*host*`.hamburg.ccc.de.conf`: Server auf dem Service-Host +* `playbooks/files/chaosknoten/configs/public-reverse-proxy/nginx/acme_challenge.conf`: Liste der Hostnamen um den neuen Host erweitern, die hinter dem Reverse-Proxy stehen +* `playbooks/files/chaosknoten/configs/public-reverse-proxy/nginx/nginx.conf`: Liste der Hostnamen um den neuen Host erweitern, die hinter dem Reverse-Proxy stehen +* `playbooks/files/chaosknoten/configs/cloud/nginx/`*host*`.hamburg.ccc.de.conf`: Server auf dem Service-Host * Individuelle Config für den Service. Wenn Docker Compose, hier weiterleiten auf den eigentlichen Dienst in Compose. * Cert-Dateinamen anpassen -* `resources/chaosknoten/`*host*`/docker_compose/compose.yaml.j2`: Config für Docker Compose (wenn verwendet) +* `playbooks/templates/chaosknoten/configs/`*host*`/compose.yaml.j2`: Config für Docker Compose (wenn verwendet) diff --git a/ansible.cfg b/ansible.cfg index ca06548..7c22aeb 100644 --- a/ansible.cfg +++ b/ansible.cfg @@ -1,6 +1,5 @@ [defaults] inventory = ./inventories/z9/hosts.yaml -pipelining = True [passwordstore_lookup] backend = pass diff --git a/inventories/chaosknoten/host_vars/ccchoir.yaml b/inventories/chaosknoten/host_vars/ccchoir.yaml index 93e49b0..cd59ea1 100644 --- a/inventories/chaosknoten/host_vars/ccchoir.yaml +++ b/inventories/chaosknoten/host_vars/ccchoir.yaml @@ -1,4 +1,4 @@ -docker_compose__compose_file_content: "{{ lookup('ansible.builtin.template', 'resources/chaosknoten/ccchoir/docker_compose/compose.yaml.j2') }}" +docker_compose__compose_file_content: "{{ lookup('ansible.builtin.template', 'chaosknoten/configs/ccchoir/compose.yaml.j2') }}" docker_compose__configuration_files: [ ] certbot__version_spec: "" @@ -12,4 +12,4 @@ certbot__new_cert_commands: nginx__version_spec: "" nginx__configurations: - name: ccchoir.de - content: "{{ lookup('ansible.builtin.file', 'resources/chaosknoten/ccchoir/nginx/ccchoir.de.conf') }}" + content: "{{ lookup('ansible.builtin.file', 'chaosknoten/configs/ccchoir/nginx/ccchoir.de.conf') }}" diff --git a/inventories/chaosknoten/host_vars/cloud.yaml b/inventories/chaosknoten/host_vars/cloud.yaml index 977aa10..b0abb25 100644 --- a/inventories/chaosknoten/host_vars/cloud.yaml +++ b/inventories/chaosknoten/host_vars/cloud.yaml @@ -3,9 +3,9 @@ nextcloud__postgres_version: 15.8 nextcloud__fqdn: cloud.hamburg.ccc.de nextcloud__data_dir: /data/nextcloud nextcloud__admin_password: "{{ lookup('community.general.passwordstore', 'noc/vm-secrets/chaosknoten/cloud/admin', create=false, missing='error') }}" -nextcloud__extra_configuration: "{{ lookup('ansible.builtin.template', 'resources/chaosknoten/cloud/nextcloud/extra_configuration.config.php.j2') }}" +nextcloud__extra_configuration: "{{ lookup('ansible.builtin.template', 'chaosknoten/configs/cloud/extra_configuration.config.php.j2') }}" nextcloud__use_custom_new_user_skeleton: true -nextcloud__custom_new_user_skeleton_directory: "resources/chaosknoten/cloud/nextcloud/new_user_skeleton_directory/" +nextcloud__custom_new_user_skeleton_directory: "chaosknoten/cloud/new_user_skeleton_directory/" nextcloud__postgres_password: "{{ lookup('community.general.passwordstore', 'noc/vm-secrets/chaosknoten/cloud/DB_PASSWORD', create=false, missing='error') }}" nextcloud__proxy_protocol_reverse_proxy_ip: 172.31.17.140 nextcloud__certbot_acme_account_email_address: le-admin@hamburg.ccc.de diff --git a/inventories/chaosknoten/host_vars/grafana.yaml b/inventories/chaosknoten/host_vars/grafana.yaml index 87cd328..300bda6 100644 --- a/inventories/chaosknoten/host_vars/grafana.yaml +++ b/inventories/chaosknoten/host_vars/grafana.yaml @@ -1,17 +1,17 @@ -docker_compose__compose_file_content: "{{ lookup('ansible.builtin.template', 'resources/chaosknoten/grafana/docker_compose/compose.yaml.j2') }}" +docker_compose__compose_file_content: "{{ lookup('ansible.builtin.template', 'chaosknoten/configs/grafana/compose.yaml.j2') }}" docker_compose__configuration_files: - name: grafana.ini - content: "{{ lookup('ansible.builtin.template', 'resources/chaosknoten/grafana/docker_compose/grafana.ini.j2') }}" + content: "{{ lookup('ansible.builtin.template', 'templates/chaosknoten/configs/grafana/docker_compose/grafana.ini') }}" - name: grafana-datasource.yml - content: "{{ lookup('ansible.builtin.file', 'resources/chaosknoten/grafana/docker_compose/grafana-datasource.yml') }}" + content: "{{ lookup('ansible.builtin.file', 'files/chaosknoten/configs/grafana/docker_compose/grafana-datasource.yml') }}" - name: prometheus.yml - content: "{{ lookup('ansible.builtin.file', 'resources/chaosknoten/grafana/docker_compose/prometheus.yml') }}" + content: "{{ lookup('ansible.builtin.file', 'files/chaosknoten/configs/grafana/docker_compose/prometheus.yml') }}" - name: alertmanager.yaml - content: "{{ lookup('ansible.builtin.template', 'resources/chaosknoten/grafana/docker_compose/alertmanager.yaml.j2') }}" + content: "{{ lookup('ansible.builtin.template', 'templates/chaosknoten/configs/grafana/docker_compose/alertmanager.yaml.j2') }}" - name: prometheus_alerts.rules.yaml - content: "{{ lookup('ansible.builtin.file', 'resources/chaosknoten/grafana/docker_compose/prometheus_alerts.rules.yaml') }}" + content: "{{ lookup('ansible.builtin.file', 'files/chaosknoten/configs/grafana/docker_compose/prometheus_alerts.rules.yaml') }}" - name: alertmanager_alert_templates.tmpl - content: "{{ lookup('ansible.builtin.file', 'resources/chaosknoten/grafana/docker_compose/alertmanager_alert_templates.tmpl') }}" + content: "{{ lookup('ansible.builtin.file', 'files/chaosknoten/configs/grafana/docker_compose/alertmanager_alert_templates.tmpl') }}" certbot__version_spec: "" certbot__acme_account_email_address: le-admin@hamburg.ccc.de @@ -23,4 +23,4 @@ certbot__new_cert_commands: nginx__version_spec: "" nginx__configurations: - name: grafana.hamburg.ccc.de - content: "{{ lookup('ansible.builtin.file', 'resources/chaosknoten/grafana/nginx/grafana.hamburg.ccc.de.conf') }}" + content: "{{ lookup('ansible.builtin.file', 'chaosknoten/configs/grafana/nginx/grafana.hamburg.ccc.de.conf') }}" diff --git a/inventories/chaosknoten/host_vars/keycloak.yaml b/inventories/chaosknoten/host_vars/keycloak.yaml index a8fbc99..944ea80 100644 --- a/inventories/chaosknoten/host_vars/keycloak.yaml +++ b/inventories/chaosknoten/host_vars/keycloak.yaml @@ -1,4 +1,4 @@ -docker_compose__compose_file_content: "{{ lookup('ansible.builtin.template', 'resources/chaosknoten/keycloak/docker_compose/compose.yaml.j2') }}" +docker_compose__compose_file_content: "{{ lookup('ansible.builtin.template', 'chaosknoten/configs/keycloak/compose.yaml.j2') }}" docker_compose__configuration_files: [ ] certbot__version_spec: "" @@ -13,8 +13,8 @@ certbot__new_cert_commands: nginx__version_spec: "" nginx__configurations: - name: id.hamburg.ccc.de - content: "{{ lookup('ansible.builtin.file', 'resources/chaosknoten/keycloak/nginx/id.hamburg.ccc.de.conf') }}" + content: "{{ lookup('ansible.builtin.file', 'chaosknoten/configs/keycloak/nginx/id.hamburg.ccc.de.conf') }}" - name: keycloak-admin.hamburg.ccc.de - content: "{{ lookup('ansible.builtin.file', 'resources/chaosknoten/keycloak/nginx/keycloak-admin.hamburg.ccc.de.conf') }}" + content: "{{ lookup('ansible.builtin.file', 'chaosknoten/configs/keycloak/nginx/keycloak-admin.hamburg.ccc.de.conf') }}" - name: invite.hamburg.ccc.de - content: "{{ lookup('ansible.builtin.file', 'resources/chaosknoten/keycloak/nginx/invite.hamburg.ccc.de.conf') }}" + content: "{{ lookup('ansible.builtin.file', 'chaosknoten/configs/keycloak/nginx/invite.hamburg.ccc.de.conf') }}" diff --git a/inventories/chaosknoten/host_vars/lists.yaml b/inventories/chaosknoten/host_vars/lists.yaml index b2270a3..8c0269e 100644 --- a/inventories/chaosknoten/host_vars/lists.yaml +++ b/inventories/chaosknoten/host_vars/lists.yaml @@ -1,4 +1,4 @@ -docker_compose__compose_file_content: "{{ lookup('ansible.builtin.file', 'resources/chaosknoten/lists/docker_compose/compose.yaml') }}" +docker_compose__compose_file_content: "{{ lookup('ansible.builtin.file', 'chaosknoten/configs/lists/compose/compose.yaml') }}" docker_compose__configuration_files: [ ] certbot__version_spec: "" @@ -12,6 +12,6 @@ certbot__new_cert_commands: nginx__version_spec: "" nginx__configurations: - name: lists.hamburg.ccc.de - content: "{{ lookup('ansible.builtin.file', 'resources/chaosknoten/lists/nginx/lists.hamburg.ccc.de.conf') }}" + content: "{{ lookup('ansible.builtin.file', 'chaosknoten/configs/lists/nginx/lists.hamburg.ccc.de.conf') }}" - name: lists.c3lingo.org - content: "{{ lookup('ansible.builtin.file', 'resources/chaosknoten/lists/nginx/lists.c3lingo.org.conf') }}" + content: "{{ lookup('ansible.builtin.file', 'chaosknoten/configs/lists/nginx/lists.c3lingo.org.conf') }}" diff --git a/inventories/chaosknoten/host_vars/mumble.yaml b/inventories/chaosknoten/host_vars/mumble.yaml index 3f3a06e..eeeeaeb 100644 --- a/inventories/chaosknoten/host_vars/mumble.yaml +++ b/inventories/chaosknoten/host_vars/mumble.yaml @@ -1,3 +1,6 @@ +docker_compose__compose_file_content: "{{ lookup('ansible.builtin.file', 'chaosknoten/configs/lists/compose/compose.yaml') }}" +docker_compose__configuration_files: [ ] + certbot__version_spec: "" certbot__acme_account_email_address: j+letsencrypt-ccchh@jsts.xyz certbot__certificate_domains: @@ -8,4 +11,4 @@ certbot__new_cert_commands: nginx__version_spec: "" nginx__configurations: - name: mumble.hamburg.ccc.de - content: "{{ lookup('ansible.builtin.file', 'resources/chaosknoten/mumble/nginx/mumble.hamburg.ccc.de.conf') }}" + content: "{{ lookup('ansible.builtin.file', 'chaosknoten/configs/mumble/nginx/mumble.hamburg.ccc.de.conf') }}" diff --git a/inventories/chaosknoten/host_vars/onlyoffice.yaml b/inventories/chaosknoten/host_vars/onlyoffice.yaml index aa39788..bf43f07 100644 --- a/inventories/chaosknoten/host_vars/onlyoffice.yaml +++ b/inventories/chaosknoten/host_vars/onlyoffice.yaml @@ -1,7 +1,7 @@ nginx__version_spec: "" nginx__configurations: - name: onlyoffice.hamburg.ccc.de - content: "{{ lookup('ansible.builtin.file', 'resources/chaosknoten/onlyoffice/nginx/onlyoffice.hamburg.ccc.de.conf') }}" + content: "{{ lookup('ansible.builtin.file', 'chaosknoten/configs/onlyoffice/nginx/onlyoffice.hamburg.ccc.de.conf') }}" certbot__version_spec: "" certbot__acme_account_email_address: j+letsencrypt-ccchh@jsts.xyz @@ -10,5 +10,5 @@ certbot__certificate_domains: certbot__new_cert_commands: - "systemctl reload nginx.service" -docker_compose__compose_file_content: "{{ lookup('ansible.builtin.template', 'resources/chaosknoten/onlyoffice/docker_compose/compose.yaml.j2') }}" +docker_compose__compose_file_content: "{{ lookup('ansible.builtin.template', 'chaosknoten/configs/onlyoffice/compose.yaml.j2') }}" docker_compose__configuration_files: [ ] diff --git a/inventories/chaosknoten/host_vars/pad.yaml b/inventories/chaosknoten/host_vars/pad.yaml index 6625415..01a0d75 100644 --- a/inventories/chaosknoten/host_vars/pad.yaml +++ b/inventories/chaosknoten/host_vars/pad.yaml @@ -1,4 +1,4 @@ -docker_compose__compose_file_content: "{{ lookup('ansible.builtin.template', 'resources/chaosknoten/pad/docker_compose/compose.yaml.j2') }}" +docker_compose__compose_file_content: "{{ lookup('ansible.builtin.template', 'chaosknoten/configs/pad/compose.yaml.j2') }}" docker_compose__configuration_files: [ ] certbot__version_spec: "" @@ -11,4 +11,4 @@ certbot__new_cert_commands: nginx__version_spec: "" nginx__configurations: - name: pad.hamburg.ccc.de - content: "{{ lookup('ansible.builtin.file', 'resources/chaosknoten/pad/nginx/pad.hamburg.ccc.de.conf') }}" + content: "{{ lookup('ansible.builtin.file', 'chaosknoten/configs/pad/nginx/pad.hamburg.ccc.de.conf') }}" diff --git a/inventories/chaosknoten/host_vars/pretalx.yaml b/inventories/chaosknoten/host_vars/pretalx.yaml index f49cc15..cd98387 100644 --- a/inventories/chaosknoten/host_vars/pretalx.yaml +++ b/inventories/chaosknoten/host_vars/pretalx.yaml @@ -1,4 +1,4 @@ -docker_compose__compose_file_content: "{{ lookup('ansible.builtin.template', 'resources/chaosknoten/pretalx/docker_compose/compose.yaml.j2') }}" +docker_compose__compose_file_content: "{{ lookup('ansible.builtin.template', 'chaosknoten/configs/pretalx/compose.yaml.j2') }}" docker_compose__configuration_files: [ ] certbot__version_spec: "" @@ -11,4 +11,4 @@ certbot__new_cert_commands: nginx__version_spec: "" nginx__configurations: - name: pretalx.hamburg.ccc.de - content: "{{ lookup('ansible.builtin.file', 'resources/chaosknoten/pretalx/nginx/pretalx.hamburg.ccc.de.conf') }}" + content: "{{ lookup('ansible.builtin.file', 'chaosknoten/configs/pretalx/nginx/pretalx.hamburg.ccc.de.conf') }}" diff --git a/inventories/chaosknoten/host_vars/public-reverse-proxy.yaml b/inventories/chaosknoten/host_vars/public-reverse-proxy.yaml index 8e70b77..a2ee48a 100644 --- a/inventories/chaosknoten/host_vars/public-reverse-proxy.yaml +++ b/inventories/chaosknoten/host_vars/public-reverse-proxy.yaml @@ -2,7 +2,7 @@ nginx__version_spec: "" nginx__deploy_redirect_conf: false nginx__configurations: - name: acme_challenge - content: "{{ lookup('ansible.builtin.file', 'resources/chaosknoten/public-reverse-proxy/nginx/acme_challenge.conf') }}" + content: "{{ lookup('ansible.builtin.file', 'chaosknoten/configs/public-reverse-proxy/nginx/acme_challenge.conf') }}" nginx__use_custom_nginx_conf: true nginx__custom_nginx_conf: | - {{ lookup('file', 'resources/chaosknoten/public-reverse-proxy/nginx/nginx.conf') }} + {{ lookup('file', 'chaosknoten/configs/public-reverse-proxy/nginx/nginx.conf') }} diff --git a/inventories/chaosknoten/host_vars/tickets.yaml b/inventories/chaosknoten/host_vars/tickets.yaml index 7a36bb6..e160a55 100644 --- a/inventories/chaosknoten/host_vars/tickets.yaml +++ b/inventories/chaosknoten/host_vars/tickets.yaml @@ -1,7 +1,7 @@ -docker_compose__compose_file_content: "{{ lookup('ansible.builtin.template', 'resources/chaosknoten/tickets/docker_compose/compose.yaml.j2') }}" +docker_compose__compose_file_content: "{{ lookup('ansible.builtin.template', 'chaosknoten/configs/tickets/compose.yaml.j2') }}" docker_compose__configuration_files: - name: pretix.cfg - content: "{{ lookup('ansible.builtin.template', 'resources/chaosknoten/tickets/docker_compose/pretix.cfg.j2') }}" + content: "{{ lookup('ansible.builtin.template', 'templates/chaosknoten/configs/tickets/pretix.cfg.j2') }}" certbot__version_spec: "" certbot__acme_account_email_address: le-admin@hamburg.ccc.de @@ -13,4 +13,4 @@ certbot__new_cert_commands: nginx__version_spec: "" nginx__configurations: - name: tickets.hamburg.ccc.de - content: "{{ lookup('ansible.builtin.file', 'resources/chaosknoten/tickets/nginx/tickets.hamburg.ccc.de.conf') }}" + content: "{{ lookup('ansible.builtin.file', 'chaosknoten/configs/tickets/nginx/tickets.hamburg.ccc.de.conf') }}" diff --git a/inventories/chaosknoten/host_vars/wiki.yaml b/inventories/chaosknoten/host_vars/wiki.yaml index 3d5fbb9..1a3e1c2 100644 --- a/inventories/chaosknoten/host_vars/wiki.yaml +++ b/inventories/chaosknoten/host_vars/wiki.yaml @@ -1,9 +1,9 @@ nginx__version_spec: "" nginx__configurations: - name: wiki.ccchh.net - content: "{{ lookup('ansible.builtin.file', 'resources/chaosknoten/wiki/nginx/wiki.ccchh.net.conf') }}" + content: "{{ lookup('ansible.builtin.file', 'chaosknoten/configs/wiki/nginx/wiki.ccchh.net.conf') }}" - name: wiki.hamburg.ccc.de - content: "{{ lookup('ansible.builtin.file', 'resources/chaosknoten/wiki/nginx/wiki.hamburg.ccc.de.conf') }}" + content: "{{ lookup('ansible.builtin.file', 'chaosknoten/configs/wiki/nginx/wiki.hamburg.ccc.de.conf') }}" certbot__version_spec: "" certbot__acme_account_email_address: j+letsencrypt-ccchh@jsts.xyz diff --git a/inventories/chaosknoten/host_vars/zammad.yaml b/inventories/chaosknoten/host_vars/zammad.yaml index 88ad99c..962df32 100644 --- a/inventories/chaosknoten/host_vars/zammad.yaml +++ b/inventories/chaosknoten/host_vars/zammad.yaml @@ -1,4 +1,4 @@ -docker_compose__compose_file_content: "{{ lookup('ansible.builtin.template', 'resources/chaosknoten/zammad/docker_compose/compose.yaml.j2') }}" +docker_compose__compose_file_content: "{{ lookup('ansible.builtin.template', 'chaosknoten/configs/zammad/compose.yaml.j2') }}" docker_compose__configuration_files: [ ] certbot__version_spec: "" @@ -9,6 +9,6 @@ certbot__certificate_domains: nginx__version_spec: "" nginx__configurations: - name: zammad.hamburg.ccc.de - content: "{{ lookup('ansible.builtin.file', 'resources/chaosknoten/zammad/nginx/zammad.hamburg.ccc.de.conf') }}" + content: "{{ lookup('ansible.builtin.file', 'chaosknoten/configs/zammad/nginx/zammad.hamburg.ccc.de.conf') }}" certbot__new_cert_commands: - "systemctl reload nginx.service" diff --git a/inventories/z9/host_vars/light.yaml b/inventories/z9/host_vars/light.yaml index 0336d22..d476663 100644 --- a/inventories/z9/host_vars/light.yaml +++ b/inventories/z9/host_vars/light.yaml @@ -3,57 +3,57 @@ foobazdmx_version: main foobazdmx_repo_url: "https://git.hamburg.ccc.de/CCCHH/foobazdmx.git" ola__configs: - name: ola-artnet - content: "{{ lookup('ansible.builtin.file', 'resources/z9/light/ola/ola-artnet.conf') }}" + content: "{{ lookup('ansible.builtin.file', 'z9/configs/light/ola/ola-artnet.conf') }}" - name: ola-dummy - content: "{{ lookup('ansible.builtin.file', 'resources/z9/light/ola/ola-dummy.conf') }}" + content: "{{ lookup('ansible.builtin.file', 'z9/configs/light/ola/ola-dummy.conf') }}" - name: ola-e131 - content: "{{ lookup('ansible.builtin.file', 'resources/z9/light/ola/ola-e131.conf') }}" + content: "{{ lookup('ansible.builtin.file', 'z9/configs/light/ola/ola-e131.conf') }}" - name: ola-espnet - content: "{{ lookup('ansible.builtin.file', 'resources/z9/light/ola/ola-espnet.conf') }}" + content: "{{ lookup('ansible.builtin.file', 'z9/configs/light/ola/ola-espnet.conf') }}" - name: ola-ftdidmx - content: "{{ lookup('ansible.builtin.file', 'resources/z9/light/ola/ola-ftdidmx.conf') }}" + content: "{{ lookup('ansible.builtin.file', 'z9/configs/light/ola/ola-ftdidmx.conf') }}" - name: ola-gpio - content: "{{ lookup('ansible.builtin.file', 'resources/z9/light/ola/ola-gpio.conf') }}" + content: "{{ lookup('ansible.builtin.file', 'z9/configs/light/ola/ola-gpio.conf') }}" - name: ola-karate - content: "{{ lookup('ansible.builtin.file', 'resources/z9/light/ola/ola-karate.conf') }}" + content: "{{ lookup('ansible.builtin.file', 'z9/configs/light/ola/ola-karate.conf') }}" - name: ola-kinet - content: "{{ lookup('ansible.builtin.file', 'resources/z9/light/ola/ola-kinet.conf') }}" + content: "{{ lookup('ansible.builtin.file', 'z9/configs/light/ola/ola-kinet.conf') }}" - name: ola-milinst - content: "{{ lookup('ansible.builtin.file', 'resources/z9/light/ola/ola-milinst.conf') }}" + content: "{{ lookup('ansible.builtin.file', 'z9/configs/light/ola/ola-milinst.conf') }}" - name: ola-opendmx - content: "{{ lookup('ansible.builtin.file', 'resources/z9/light/ola/ola-opendmx.conf') }}" + content: "{{ lookup('ansible.builtin.file', 'z9/configs/light/ola/ola-opendmx.conf') }}" - name: ola-openpixelcontrol - content: "{{ lookup('ansible.builtin.file', 'resources/z9/light/ola/ola-openpixelcontrol.conf') }}" + content: "{{ lookup('ansible.builtin.file', 'z9/configs/light/ola/ola-openpixelcontrol.conf') }}" - name: ola-osc - content: "{{ lookup('ansible.builtin.file', 'resources/z9/light/ola/ola-osc.conf') }}" + content: "{{ lookup('ansible.builtin.file', 'z9/configs/light/ola/ola-osc.conf') }}" - name: ola-pathport - content: "{{ lookup('ansible.builtin.file', 'resources/z9/light/ola/ola-pathport.conf') }}" + content: "{{ lookup('ansible.builtin.file', 'z9/configs/light/ola/ola-pathport.conf') }}" - name: ola-port - content: "{{ lookup('ansible.builtin.file', 'resources/z9/light/ola/ola-port.conf') }}" + content: "{{ lookup('ansible.builtin.file', 'z9/configs/light/ola/ola-port.conf') }}" - name: ola-renard - content: "{{ lookup('ansible.builtin.file', 'resources/z9/light/ola/ola-renard.conf') }}" + content: "{{ lookup('ansible.builtin.file', 'z9/configs/light/ola/ola-renard.conf') }}" - name: ola-sandnet - content: "{{ lookup('ansible.builtin.file', 'resources/z9/light/ola/ola-sandnet.conf') }}" + content: "{{ lookup('ansible.builtin.file', 'z9/configs/light/ola/ola-sandnet.conf') }}" - name: ola-server - content: "{{ lookup('ansible.builtin.file', 'resources/z9/light/ola/ola-server.conf') }}" + content: "{{ lookup('ansible.builtin.file', 'z9/configs/light/ola/ola-server.conf') }}" - name: ola-shownet - content: "{{ lookup('ansible.builtin.file', 'resources/z9/light/ola/ola-shownet.conf') }}" + content: "{{ lookup('ansible.builtin.file', 'z9/configs/light/ola/ola-shownet.conf') }}" - name: ola-spi - content: "{{ lookup('ansible.builtin.file', 'resources/z9/light/ola/ola-spi.conf') }}" + content: "{{ lookup('ansible.builtin.file', 'z9/configs/light/ola/ola-spi.conf') }}" - name: ola-stageprofi - content: "{{ lookup('ansible.builtin.file', 'resources/z9/light/ola/ola-stageprofi.conf') }}" + content: "{{ lookup('ansible.builtin.file', 'z9/configs/light/ola/ola-stageprofi.conf') }}" - name: ola-uartdmx - content: "{{ lookup('ansible.builtin.file', 'resources/z9/light/ola/ola-uartdmx.conf') }}" + content: "{{ lookup('ansible.builtin.file', 'z9/configs/light/ola/ola-uartdmx.conf') }}" - name: ola-universe - content: "{{ lookup('ansible.builtin.file', 'resources/z9/light/ola/ola-universe.conf') }}" + content: "{{ lookup('ansible.builtin.file', 'z9/configs/light/ola/ola-universe.conf') }}" - name: ola-usbdmx - content: "{{ lookup('ansible.builtin.file', 'resources/z9/light/ola/ola-usbdmx.conf') }}" + content: "{{ lookup('ansible.builtin.file', 'z9/configs/light/ola/ola-usbdmx.conf') }}" - name: ola-usbserial - content: "{{ lookup('ansible.builtin.file', 'resources/z9/light/ola/ola-usbserial.conf') }}" + content: "{{ lookup('ansible.builtin.file', 'z9/configs/light/ola/ola-usbserial.conf') }}" nginx__version_spec: "" nginx__deploy_redirect_conf: false nginx__configurations: - name: light - content: "{{ lookup('ansible.builtin.file', 'resources/z9/light/nginx/light.conf') }}" + content: "{{ lookup('ansible.builtin.file', 'z9/configs/light/nginx/light.conf') }}" - name: http_handler - content: "{{ lookup('ansible.builtin.file', 'resources/z9/light/nginx/http_handler.conf') }}" + content: "{{ lookup('ansible.builtin.file', 'z9/configs/light/nginx/http_handler.conf') }}" diff --git a/playbooks/check.yaml b/playbooks/check.yaml deleted file mode 100644 index 63ea631..0000000 --- a/playbooks/check.yaml +++ /dev/null @@ -1,31 +0,0 @@ ---- -- name: Host information - hosts: all - tasks: - - name: Print OS distribution and version - ansible.builtin.debug: - msg: "{{ ansible_facts['distribution'] }} {{ ansible_facts['distribution_version'] }} ({{ ansible_facts['distribution_release'] }})" - - - name: Find all .dpkg-* files - ansible.builtin.find: - paths: /etc - file_type: file - recurse: true - use_regex: false - patterns: - - "*.dpkg-*" - become: true - register: check__dpkg_files - - - name: Create variable for list of all .dpkg-* files - ansible.builtin.set_fact: - check__dpkg_files_list: [ ] - - - name: Populate list of all .dpkg-* files - ansible.builtin.set_fact: - check__dpkg_files_list: "{{ check__dpkg_files_list + [item.path] }}" - loop: "{{ check__dpkg_files.files }}" - - - name: Print .dpkg-* files list - ansible.builtin.debug: - var: check__dpkg_files_list diff --git a/resources/chaosknoten/cloud/nextcloud/new_user_skeleton_directory/Photos/augenohrenkatze.jpg b/playbooks/files/chaosknoten/cloud/new_user_skeleton_directory/Photos/augenohrenkatze.jpg similarity index 100% rename from resources/chaosknoten/cloud/nextcloud/new_user_skeleton_directory/Photos/augenohrenkatze.jpg rename to playbooks/files/chaosknoten/cloud/new_user_skeleton_directory/Photos/augenohrenkatze.jpg diff --git a/resources/chaosknoten/cloud/nextcloud/new_user_skeleton_directory/Photos/ccclubhajs.jpg b/playbooks/files/chaosknoten/cloud/new_user_skeleton_directory/Photos/ccclubhajs.jpg similarity index 100% rename from resources/chaosknoten/cloud/nextcloud/new_user_skeleton_directory/Photos/ccclubhajs.jpg rename to playbooks/files/chaosknoten/cloud/new_user_skeleton_directory/Photos/ccclubhajs.jpg diff --git a/resources/chaosknoten/cloud/nextcloud/new_user_skeleton_directory/README.md b/playbooks/files/chaosknoten/cloud/new_user_skeleton_directory/README.md similarity index 100% rename from resources/chaosknoten/cloud/nextcloud/new_user_skeleton_directory/README.md rename to playbooks/files/chaosknoten/cloud/new_user_skeleton_directory/README.md diff --git a/resources/chaosknoten/ccchoir/nginx/ccchoir.de.conf b/playbooks/files/chaosknoten/configs/ccchoir/nginx/ccchoir.de.conf similarity index 100% rename from resources/chaosknoten/ccchoir/nginx/ccchoir.de.conf rename to playbooks/files/chaosknoten/configs/ccchoir/nginx/ccchoir.de.conf diff --git a/resources/chaosknoten/grafana/docker_compose/alertmanager_alert_templates.tmpl b/playbooks/files/chaosknoten/configs/grafana/docker_compose/alertmanager_alert_templates.tmpl similarity index 100% rename from resources/chaosknoten/grafana/docker_compose/alertmanager_alert_templates.tmpl rename to playbooks/files/chaosknoten/configs/grafana/docker_compose/alertmanager_alert_templates.tmpl diff --git a/resources/chaosknoten/grafana/docker_compose/grafana-datasource.yml b/playbooks/files/chaosknoten/configs/grafana/docker_compose/grafana-datasource.yml similarity index 100% rename from resources/chaosknoten/grafana/docker_compose/grafana-datasource.yml rename to playbooks/files/chaosknoten/configs/grafana/docker_compose/grafana-datasource.yml diff --git a/resources/chaosknoten/grafana/docker_compose/grafana.ini.example b/playbooks/files/chaosknoten/configs/grafana/docker_compose/grafana.ini.example similarity index 100% rename from resources/chaosknoten/grafana/docker_compose/grafana.ini.example rename to playbooks/files/chaosknoten/configs/grafana/docker_compose/grafana.ini.example diff --git a/resources/chaosknoten/grafana/docker_compose/prometheus.yml b/playbooks/files/chaosknoten/configs/grafana/docker_compose/prometheus.yml similarity index 100% rename from resources/chaosknoten/grafana/docker_compose/prometheus.yml rename to playbooks/files/chaosknoten/configs/grafana/docker_compose/prometheus.yml diff --git a/resources/chaosknoten/grafana/docker_compose/prometheus_alerts.rules.yaml b/playbooks/files/chaosknoten/configs/grafana/docker_compose/prometheus_alerts.rules.yaml similarity index 100% rename from resources/chaosknoten/grafana/docker_compose/prometheus_alerts.rules.yaml rename to playbooks/files/chaosknoten/configs/grafana/docker_compose/prometheus_alerts.rules.yaml diff --git a/resources/chaosknoten/grafana/nginx/grafana.hamburg.ccc.de.conf b/playbooks/files/chaosknoten/configs/grafana/nginx/grafana.hamburg.ccc.de.conf similarity index 100% rename from resources/chaosknoten/grafana/nginx/grafana.hamburg.ccc.de.conf rename to playbooks/files/chaosknoten/configs/grafana/nginx/grafana.hamburg.ccc.de.conf diff --git a/resources/chaosknoten/keycloak/nginx/id.hamburg.ccc.de.conf b/playbooks/files/chaosknoten/configs/keycloak/nginx/id.hamburg.ccc.de.conf similarity index 100% rename from resources/chaosknoten/keycloak/nginx/id.hamburg.ccc.de.conf rename to playbooks/files/chaosknoten/configs/keycloak/nginx/id.hamburg.ccc.de.conf diff --git a/resources/chaosknoten/keycloak/nginx/invite.hamburg.ccc.de.conf b/playbooks/files/chaosknoten/configs/keycloak/nginx/invite.hamburg.ccc.de.conf similarity index 100% rename from resources/chaosknoten/keycloak/nginx/invite.hamburg.ccc.de.conf rename to playbooks/files/chaosknoten/configs/keycloak/nginx/invite.hamburg.ccc.de.conf diff --git a/resources/chaosknoten/keycloak/nginx/keycloak-admin.hamburg.ccc.de.conf b/playbooks/files/chaosknoten/configs/keycloak/nginx/keycloak-admin.hamburg.ccc.de.conf similarity index 100% rename from resources/chaosknoten/keycloak/nginx/keycloak-admin.hamburg.ccc.de.conf rename to playbooks/files/chaosknoten/configs/keycloak/nginx/keycloak-admin.hamburg.ccc.de.conf diff --git a/resources/chaosknoten/lists/docker_compose/compose.yaml b/playbooks/files/chaosknoten/configs/lists/compose/compose.yaml similarity index 100% rename from resources/chaosknoten/lists/docker_compose/compose.yaml rename to playbooks/files/chaosknoten/configs/lists/compose/compose.yaml diff --git a/resources/chaosknoten/lists/nginx/lists.c3lingo.org.conf b/playbooks/files/chaosknoten/configs/lists/nginx/lists.c3lingo.org.conf similarity index 100% rename from resources/chaosknoten/lists/nginx/lists.c3lingo.org.conf rename to playbooks/files/chaosknoten/configs/lists/nginx/lists.c3lingo.org.conf diff --git a/resources/chaosknoten/lists/nginx/lists.hamburg.ccc.de.conf b/playbooks/files/chaosknoten/configs/lists/nginx/lists.hamburg.ccc.de.conf similarity index 100% rename from resources/chaosknoten/lists/nginx/lists.hamburg.ccc.de.conf rename to playbooks/files/chaosknoten/configs/lists/nginx/lists.hamburg.ccc.de.conf diff --git a/resources/chaosknoten/mumble/nginx/mumble.hamburg.ccc.de.conf b/playbooks/files/chaosknoten/configs/mumble/nginx/mumble.hamburg.ccc.de.conf similarity index 100% rename from resources/chaosknoten/mumble/nginx/mumble.hamburg.ccc.de.conf rename to playbooks/files/chaosknoten/configs/mumble/nginx/mumble.hamburg.ccc.de.conf diff --git a/resources/chaosknoten/onlyoffice/nginx/onlyoffice.hamburg.ccc.de.conf b/playbooks/files/chaosknoten/configs/onlyoffice/nginx/onlyoffice.hamburg.ccc.de.conf similarity index 100% rename from resources/chaosknoten/onlyoffice/nginx/onlyoffice.hamburg.ccc.de.conf rename to playbooks/files/chaosknoten/configs/onlyoffice/nginx/onlyoffice.hamburg.ccc.de.conf diff --git a/resources/chaosknoten/pad/nginx/pad.hamburg.ccc.de.conf b/playbooks/files/chaosknoten/configs/pad/nginx/pad.hamburg.ccc.de.conf similarity index 100% rename from resources/chaosknoten/pad/nginx/pad.hamburg.ccc.de.conf rename to playbooks/files/chaosknoten/configs/pad/nginx/pad.hamburg.ccc.de.conf diff --git a/resources/chaosknoten/pretalx/nginx/pretalx.hamburg.ccc.de.conf b/playbooks/files/chaosknoten/configs/pretalx/nginx/pretalx.hamburg.ccc.de.conf similarity index 100% rename from resources/chaosknoten/pretalx/nginx/pretalx.hamburg.ccc.de.conf rename to playbooks/files/chaosknoten/configs/pretalx/nginx/pretalx.hamburg.ccc.de.conf diff --git a/resources/chaosknoten/public-reverse-proxy/nginx/acme_challenge.conf b/playbooks/files/chaosknoten/configs/public-reverse-proxy/nginx/acme_challenge.conf similarity index 100% rename from resources/chaosknoten/public-reverse-proxy/nginx/acme_challenge.conf rename to playbooks/files/chaosknoten/configs/public-reverse-proxy/nginx/acme_challenge.conf diff --git a/resources/chaosknoten/public-reverse-proxy/nginx/nginx.conf b/playbooks/files/chaosknoten/configs/public-reverse-proxy/nginx/nginx.conf similarity index 100% rename from resources/chaosknoten/public-reverse-proxy/nginx/nginx.conf rename to playbooks/files/chaosknoten/configs/public-reverse-proxy/nginx/nginx.conf diff --git a/resources/chaosknoten/tickets/nginx/tickets.hamburg.ccc.de.conf b/playbooks/files/chaosknoten/configs/tickets/nginx/tickets.hamburg.ccc.de.conf similarity index 100% rename from resources/chaosknoten/tickets/nginx/tickets.hamburg.ccc.de.conf rename to playbooks/files/chaosknoten/configs/tickets/nginx/tickets.hamburg.ccc.de.conf diff --git a/resources/chaosknoten/wiki/nginx/wiki.ccchh.net.conf b/playbooks/files/chaosknoten/configs/wiki/nginx/wiki.ccchh.net.conf similarity index 100% rename from resources/chaosknoten/wiki/nginx/wiki.ccchh.net.conf rename to playbooks/files/chaosknoten/configs/wiki/nginx/wiki.ccchh.net.conf diff --git a/resources/chaosknoten/wiki/nginx/wiki.hamburg.ccc.de.conf b/playbooks/files/chaosknoten/configs/wiki/nginx/wiki.hamburg.ccc.de.conf similarity index 100% rename from resources/chaosknoten/wiki/nginx/wiki.hamburg.ccc.de.conf rename to playbooks/files/chaosknoten/configs/wiki/nginx/wiki.hamburg.ccc.de.conf diff --git a/resources/chaosknoten/zammad/nginx/zammad.hamburg.ccc.de.conf b/playbooks/files/chaosknoten/configs/zammad/nginx/zammad.hamburg.ccc.de.conf similarity index 100% rename from resources/chaosknoten/zammad/nginx/zammad.hamburg.ccc.de.conf rename to playbooks/files/chaosknoten/configs/zammad/nginx/zammad.hamburg.ccc.de.conf diff --git a/resources/z9/light/nginx/http_handler.conf b/playbooks/files/z9/configs/light/nginx/http_handler.conf similarity index 100% rename from resources/z9/light/nginx/http_handler.conf rename to playbooks/files/z9/configs/light/nginx/http_handler.conf diff --git a/resources/z9/light/nginx/light.conf b/playbooks/files/z9/configs/light/nginx/light.conf similarity index 100% rename from resources/z9/light/nginx/light.conf rename to playbooks/files/z9/configs/light/nginx/light.conf diff --git a/resources/z9/light/ola/ola-artnet.conf b/playbooks/files/z9/configs/light/ola/ola-artnet.conf similarity index 100% rename from resources/z9/light/ola/ola-artnet.conf rename to playbooks/files/z9/configs/light/ola/ola-artnet.conf diff --git a/resources/z9/light/ola/ola-dummy.conf b/playbooks/files/z9/configs/light/ola/ola-dummy.conf similarity index 100% rename from resources/z9/light/ola/ola-dummy.conf rename to playbooks/files/z9/configs/light/ola/ola-dummy.conf diff --git a/resources/z9/light/ola/ola-e131.conf b/playbooks/files/z9/configs/light/ola/ola-e131.conf similarity index 100% rename from resources/z9/light/ola/ola-e131.conf rename to playbooks/files/z9/configs/light/ola/ola-e131.conf diff --git a/resources/z9/light/ola/ola-espnet.conf b/playbooks/files/z9/configs/light/ola/ola-espnet.conf similarity index 100% rename from resources/z9/light/ola/ola-espnet.conf rename to playbooks/files/z9/configs/light/ola/ola-espnet.conf diff --git a/resources/z9/light/ola/ola-ftdidmx.conf b/playbooks/files/z9/configs/light/ola/ola-ftdidmx.conf similarity index 100% rename from resources/z9/light/ola/ola-ftdidmx.conf rename to playbooks/files/z9/configs/light/ola/ola-ftdidmx.conf diff --git a/resources/z9/light/ola/ola-gpio.conf b/playbooks/files/z9/configs/light/ola/ola-gpio.conf similarity index 100% rename from resources/z9/light/ola/ola-gpio.conf rename to playbooks/files/z9/configs/light/ola/ola-gpio.conf diff --git a/resources/z9/light/ola/ola-karate.conf b/playbooks/files/z9/configs/light/ola/ola-karate.conf similarity index 100% rename from resources/z9/light/ola/ola-karate.conf rename to playbooks/files/z9/configs/light/ola/ola-karate.conf diff --git a/resources/z9/light/ola/ola-kinet.conf b/playbooks/files/z9/configs/light/ola/ola-kinet.conf similarity index 100% rename from resources/z9/light/ola/ola-kinet.conf rename to playbooks/files/z9/configs/light/ola/ola-kinet.conf diff --git a/resources/z9/light/ola/ola-milinst.conf b/playbooks/files/z9/configs/light/ola/ola-milinst.conf similarity index 100% rename from resources/z9/light/ola/ola-milinst.conf rename to playbooks/files/z9/configs/light/ola/ola-milinst.conf diff --git a/resources/z9/light/ola/ola-opendmx.conf b/playbooks/files/z9/configs/light/ola/ola-opendmx.conf similarity index 100% rename from resources/z9/light/ola/ola-opendmx.conf rename to playbooks/files/z9/configs/light/ola/ola-opendmx.conf diff --git a/resources/z9/light/ola/ola-openpixelcontrol.conf b/playbooks/files/z9/configs/light/ola/ola-openpixelcontrol.conf similarity index 100% rename from resources/z9/light/ola/ola-openpixelcontrol.conf rename to playbooks/files/z9/configs/light/ola/ola-openpixelcontrol.conf diff --git a/resources/z9/light/ola/ola-osc.conf b/playbooks/files/z9/configs/light/ola/ola-osc.conf similarity index 100% rename from resources/z9/light/ola/ola-osc.conf rename to playbooks/files/z9/configs/light/ola/ola-osc.conf diff --git a/resources/z9/light/ola/ola-pathport.conf b/playbooks/files/z9/configs/light/ola/ola-pathport.conf similarity index 100% rename from resources/z9/light/ola/ola-pathport.conf rename to playbooks/files/z9/configs/light/ola/ola-pathport.conf diff --git a/resources/z9/light/ola/ola-port.conf b/playbooks/files/z9/configs/light/ola/ola-port.conf similarity index 100% rename from resources/z9/light/ola/ola-port.conf rename to playbooks/files/z9/configs/light/ola/ola-port.conf diff --git a/resources/z9/light/ola/ola-renard.conf b/playbooks/files/z9/configs/light/ola/ola-renard.conf similarity index 100% rename from resources/z9/light/ola/ola-renard.conf rename to playbooks/files/z9/configs/light/ola/ola-renard.conf diff --git a/resources/z9/light/ola/ola-sandnet.conf b/playbooks/files/z9/configs/light/ola/ola-sandnet.conf similarity index 100% rename from resources/z9/light/ola/ola-sandnet.conf rename to playbooks/files/z9/configs/light/ola/ola-sandnet.conf diff --git a/resources/z9/light/ola/ola-server.conf b/playbooks/files/z9/configs/light/ola/ola-server.conf similarity index 100% rename from resources/z9/light/ola/ola-server.conf rename to playbooks/files/z9/configs/light/ola/ola-server.conf diff --git a/resources/z9/light/ola/ola-shownet.conf b/playbooks/files/z9/configs/light/ola/ola-shownet.conf similarity index 100% rename from resources/z9/light/ola/ola-shownet.conf rename to playbooks/files/z9/configs/light/ola/ola-shownet.conf diff --git a/resources/z9/light/ola/ola-spi.conf b/playbooks/files/z9/configs/light/ola/ola-spi.conf similarity index 100% rename from resources/z9/light/ola/ola-spi.conf rename to playbooks/files/z9/configs/light/ola/ola-spi.conf diff --git a/resources/z9/light/ola/ola-stageprofi.conf b/playbooks/files/z9/configs/light/ola/ola-stageprofi.conf similarity index 100% rename from resources/z9/light/ola/ola-stageprofi.conf rename to playbooks/files/z9/configs/light/ola/ola-stageprofi.conf diff --git a/resources/z9/light/ola/ola-uartdmx.conf b/playbooks/files/z9/configs/light/ola/ola-uartdmx.conf similarity index 100% rename from resources/z9/light/ola/ola-uartdmx.conf rename to playbooks/files/z9/configs/light/ola/ola-uartdmx.conf diff --git a/resources/z9/light/ola/ola-universe.conf b/playbooks/files/z9/configs/light/ola/ola-universe.conf similarity index 100% rename from resources/z9/light/ola/ola-universe.conf rename to playbooks/files/z9/configs/light/ola/ola-universe.conf diff --git a/resources/z9/light/ola/ola-usbdmx.conf b/playbooks/files/z9/configs/light/ola/ola-usbdmx.conf similarity index 100% rename from resources/z9/light/ola/ola-usbdmx.conf rename to playbooks/files/z9/configs/light/ola/ola-usbdmx.conf diff --git a/resources/z9/light/ola/ola-usbserial.conf b/playbooks/files/z9/configs/light/ola/ola-usbserial.conf similarity index 100% rename from resources/z9/light/ola/ola-usbserial.conf rename to playbooks/files/z9/configs/light/ola/ola-usbserial.conf diff --git a/playbooks/resources b/playbooks/resources deleted file mode 120000 index 35a4f7a..0000000 --- a/playbooks/resources +++ /dev/null @@ -1 +0,0 @@ -../resources \ No newline at end of file diff --git a/playbooks/roles b/playbooks/roles deleted file mode 120000 index d8c4472..0000000 --- a/playbooks/roles +++ /dev/null @@ -1 +0,0 @@ -../roles \ No newline at end of file diff --git a/roles/add_apt_repository/meta/argument_specs.yaml b/playbooks/roles/add_apt_repository/meta/argument_specs.yaml similarity index 100% rename from roles/add_apt_repository/meta/argument_specs.yaml rename to playbooks/roles/add_apt_repository/meta/argument_specs.yaml diff --git a/roles/add_apt_repository/tasks/main.yaml b/playbooks/roles/add_apt_repository/tasks/main.yaml similarity index 100% rename from roles/add_apt_repository/tasks/main.yaml rename to playbooks/roles/add_apt_repository/tasks/main.yaml diff --git a/roles/apt_update_and_upgrade/README.md b/playbooks/roles/apt_update_and_upgrade/README.md similarity index 100% rename from roles/apt_update_and_upgrade/README.md rename to playbooks/roles/apt_update_and_upgrade/README.md diff --git a/roles/apt_update_and_upgrade/handlers/main.yaml b/playbooks/roles/apt_update_and_upgrade/handlers/main.yaml similarity index 100% rename from roles/apt_update_and_upgrade/handlers/main.yaml rename to playbooks/roles/apt_update_and_upgrade/handlers/main.yaml diff --git a/roles/apt_update_and_upgrade/tasks/main.yaml b/playbooks/roles/apt_update_and_upgrade/tasks/main.yaml similarity index 100% rename from roles/apt_update_and_upgrade/tasks/main.yaml rename to playbooks/roles/apt_update_and_upgrade/tasks/main.yaml diff --git a/roles/certbot/README.md b/playbooks/roles/certbot/README.md similarity index 100% rename from roles/certbot/README.md rename to playbooks/roles/certbot/README.md diff --git a/roles/certbot/defaults/main.yaml b/playbooks/roles/certbot/defaults/main.yaml similarity index 100% rename from roles/certbot/defaults/main.yaml rename to playbooks/roles/certbot/defaults/main.yaml diff --git a/roles/certbot/meta/argument_specs.yaml b/playbooks/roles/certbot/meta/argument_specs.yaml similarity index 100% rename from roles/certbot/meta/argument_specs.yaml rename to playbooks/roles/certbot/meta/argument_specs.yaml diff --git a/roles/certbot/meta/main.yaml b/playbooks/roles/certbot/meta/main.yaml similarity index 100% rename from roles/certbot/meta/main.yaml rename to playbooks/roles/certbot/meta/main.yaml diff --git a/roles/certbot/tasks/main.yaml b/playbooks/roles/certbot/tasks/main.yaml similarity index 100% rename from roles/certbot/tasks/main.yaml rename to playbooks/roles/certbot/tasks/main.yaml diff --git a/roles/certbot/tasks/main/cert.yaml b/playbooks/roles/certbot/tasks/main/cert.yaml similarity index 100% rename from roles/certbot/tasks/main/cert.yaml rename to playbooks/roles/certbot/tasks/main/cert.yaml diff --git a/roles/certbot/tasks/main/certs.yaml b/playbooks/roles/certbot/tasks/main/certs.yaml similarity index 100% rename from roles/certbot/tasks/main/certs.yaml rename to playbooks/roles/certbot/tasks/main/certs.yaml diff --git a/roles/certbot/tasks/main/install.yaml b/playbooks/roles/certbot/tasks/main/install.yaml similarity index 100% rename from roles/certbot/tasks/main/install.yaml rename to playbooks/roles/certbot/tasks/main/install.yaml diff --git a/roles/certbot/tasks/main/new_cert_commands.yaml b/playbooks/roles/certbot/tasks/main/new_cert_commands.yaml similarity index 100% rename from roles/certbot/tasks/main/new_cert_commands.yaml rename to playbooks/roles/certbot/tasks/main/new_cert_commands.yaml diff --git a/roles/certbot/templates/renewal_deploy_hook_commands.sh.j2 b/playbooks/roles/certbot/templates/renewal_deploy_hook_commands.sh.j2 similarity index 100% rename from roles/certbot/templates/renewal_deploy_hook_commands.sh.j2 rename to playbooks/roles/certbot/templates/renewal_deploy_hook_commands.sh.j2 diff --git a/roles/deploy_ssh_server_config/README.md b/playbooks/roles/deploy_ssh_server_config/README.md similarity index 100% rename from roles/deploy_ssh_server_config/README.md rename to playbooks/roles/deploy_ssh_server_config/README.md diff --git a/roles/deploy_ssh_server_config/docs/Debian_11_cloud_2023-04-21_default_etc_ssh_sshd_config b/playbooks/roles/deploy_ssh_server_config/docs/Debian_11_cloud_2023-04-21_default_etc_ssh_sshd_config similarity index 100% rename from roles/deploy_ssh_server_config/docs/Debian_11_cloud_2023-04-21_default_etc_ssh_sshd_config rename to playbooks/roles/deploy_ssh_server_config/docs/Debian_11_cloud_2023-04-21_default_etc_ssh_sshd_config diff --git a/roles/deploy_ssh_server_config/docs/Debian_12_cloud_2023-07-25_default_etc_ssh_sshd_config b/playbooks/roles/deploy_ssh_server_config/docs/Debian_12_cloud_2023-07-25_default_etc_ssh_sshd_config similarity index 100% rename from roles/deploy_ssh_server_config/docs/Debian_12_cloud_2023-07-25_default_etc_ssh_sshd_config rename to playbooks/roles/deploy_ssh_server_config/docs/Debian_12_cloud_2023-07-25_default_etc_ssh_sshd_config diff --git a/roles/deploy_ssh_server_config/handlers/main.yaml b/playbooks/roles/deploy_ssh_server_config/handlers/main.yaml similarity index 100% rename from roles/deploy_ssh_server_config/handlers/main.yaml rename to playbooks/roles/deploy_ssh_server_config/handlers/main.yaml diff --git a/roles/deploy_ssh_server_config/tasks/main.yaml b/playbooks/roles/deploy_ssh_server_config/tasks/main.yaml similarity index 100% rename from roles/deploy_ssh_server_config/tasks/main.yaml rename to playbooks/roles/deploy_ssh_server_config/tasks/main.yaml diff --git a/roles/deploy_ssh_server_config/templates/sshd_config.j2 b/playbooks/roles/deploy_ssh_server_config/templates/sshd_config.j2 similarity index 100% rename from roles/deploy_ssh_server_config/templates/sshd_config.j2 rename to playbooks/roles/deploy_ssh_server_config/templates/sshd_config.j2 diff --git a/roles/distribution_check/README.md b/playbooks/roles/distribution_check/README.md similarity index 100% rename from roles/distribution_check/README.md rename to playbooks/roles/distribution_check/README.md diff --git a/roles/distribution_check/meta/argument_specs.yaml b/playbooks/roles/distribution_check/meta/argument_specs.yaml similarity index 100% rename from roles/distribution_check/meta/argument_specs.yaml rename to playbooks/roles/distribution_check/meta/argument_specs.yaml diff --git a/roles/distribution_check/tasks/main.yaml b/playbooks/roles/distribution_check/tasks/main.yaml similarity index 100% rename from roles/distribution_check/tasks/main.yaml rename to playbooks/roles/distribution_check/tasks/main.yaml diff --git a/roles/docker/README.md b/playbooks/roles/docker/README.md similarity index 100% rename from roles/docker/README.md rename to playbooks/roles/docker/README.md diff --git a/roles/docker/meta/main.yaml b/playbooks/roles/docker/meta/main.yaml similarity index 100% rename from roles/docker/meta/main.yaml rename to playbooks/roles/docker/meta/main.yaml diff --git a/roles/docker/tasks/main.yaml b/playbooks/roles/docker/tasks/main.yaml similarity index 100% rename from roles/docker/tasks/main.yaml rename to playbooks/roles/docker/tasks/main.yaml diff --git a/roles/docker/tasks/main/01_repo_setup.yaml b/playbooks/roles/docker/tasks/main/01_repo_setup.yaml similarity index 100% rename from roles/docker/tasks/main/01_repo_setup.yaml rename to playbooks/roles/docker/tasks/main/01_repo_setup.yaml diff --git a/roles/docker/tasks/main/02_docker_install.yaml b/playbooks/roles/docker/tasks/main/02_docker_install.yaml similarity index 100% rename from roles/docker/tasks/main/02_docker_install.yaml rename to playbooks/roles/docker/tasks/main/02_docker_install.yaml diff --git a/roles/docker_compose/README.md b/playbooks/roles/docker_compose/README.md similarity index 100% rename from roles/docker_compose/README.md rename to playbooks/roles/docker_compose/README.md diff --git a/roles/docker_compose/defaults/main.yaml b/playbooks/roles/docker_compose/defaults/main.yaml similarity index 100% rename from roles/docker_compose/defaults/main.yaml rename to playbooks/roles/docker_compose/defaults/main.yaml diff --git a/roles/docker_compose/handlers/main.yaml b/playbooks/roles/docker_compose/handlers/main.yaml similarity index 100% rename from roles/docker_compose/handlers/main.yaml rename to playbooks/roles/docker_compose/handlers/main.yaml diff --git a/roles/docker_compose/meta/argument_specs.yaml b/playbooks/roles/docker_compose/meta/argument_specs.yaml similarity index 100% rename from roles/docker_compose/meta/argument_specs.yaml rename to playbooks/roles/docker_compose/meta/argument_specs.yaml diff --git a/roles/docker_compose/meta/main.yaml b/playbooks/roles/docker_compose/meta/main.yaml similarity index 100% rename from roles/docker_compose/meta/main.yaml rename to playbooks/roles/docker_compose/meta/main.yaml diff --git a/roles/docker_compose/tasks/main.yaml b/playbooks/roles/docker_compose/tasks/main.yaml similarity index 100% rename from roles/docker_compose/tasks/main.yaml rename to playbooks/roles/docker_compose/tasks/main.yaml diff --git a/roles/dokuwiki/README.md b/playbooks/roles/dokuwiki/README.md similarity index 100% rename from roles/dokuwiki/README.md rename to playbooks/roles/dokuwiki/README.md diff --git a/roles/dokuwiki/defaults/main.yml b/playbooks/roles/dokuwiki/defaults/main.yml similarity index 100% rename from roles/dokuwiki/defaults/main.yml rename to playbooks/roles/dokuwiki/defaults/main.yml diff --git a/roles/dokuwiki/files/mime.local.conf b/playbooks/roles/dokuwiki/files/mime.local.conf similarity index 100% rename from roles/dokuwiki/files/mime.local.conf rename to playbooks/roles/dokuwiki/files/mime.local.conf diff --git a/roles/dokuwiki/handlers/main.yml b/playbooks/roles/dokuwiki/handlers/main.yml similarity index 100% rename from roles/dokuwiki/handlers/main.yml rename to playbooks/roles/dokuwiki/handlers/main.yml diff --git a/roles/dokuwiki/meta/main.yml b/playbooks/roles/dokuwiki/meta/main.yml similarity index 100% rename from roles/dokuwiki/meta/main.yml rename to playbooks/roles/dokuwiki/meta/main.yml diff --git a/roles/dokuwiki/tasks/main.yml b/playbooks/roles/dokuwiki/tasks/main.yml similarity index 100% rename from roles/dokuwiki/tasks/main.yml rename to playbooks/roles/dokuwiki/tasks/main.yml diff --git a/roles/dokuwiki/templates/php-fpm-dokuwiki.conf b/playbooks/roles/dokuwiki/templates/php-fpm-dokuwiki.conf similarity index 100% rename from roles/dokuwiki/templates/php-fpm-dokuwiki.conf rename to playbooks/roles/dokuwiki/templates/php-fpm-dokuwiki.conf diff --git a/roles/foobazdmx/defaults/main.yaml b/playbooks/roles/foobazdmx/defaults/main.yaml similarity index 100% rename from roles/foobazdmx/defaults/main.yaml rename to playbooks/roles/foobazdmx/defaults/main.yaml diff --git a/roles/foobazdmx/handlers/main.yaml b/playbooks/roles/foobazdmx/handlers/main.yaml similarity index 100% rename from roles/foobazdmx/handlers/main.yaml rename to playbooks/roles/foobazdmx/handlers/main.yaml diff --git a/roles/foobazdmx/meta/argument_specs.yaml b/playbooks/roles/foobazdmx/meta/argument_specs.yaml similarity index 100% rename from roles/foobazdmx/meta/argument_specs.yaml rename to playbooks/roles/foobazdmx/meta/argument_specs.yaml diff --git a/roles/foobazdmx/meta/main.yaml b/playbooks/roles/foobazdmx/meta/main.yaml similarity index 100% rename from roles/foobazdmx/meta/main.yaml rename to playbooks/roles/foobazdmx/meta/main.yaml diff --git a/roles/foobazdmx/tasks/main.yaml b/playbooks/roles/foobazdmx/tasks/main.yaml similarity index 100% rename from roles/foobazdmx/tasks/main.yaml rename to playbooks/roles/foobazdmx/tasks/main.yaml diff --git a/roles/foobazdmx/templates/foobazdmx-shop.service.j2 b/playbooks/roles/foobazdmx/templates/foobazdmx-shop.service.j2 similarity index 100% rename from roles/foobazdmx/templates/foobazdmx-shop.service.j2 rename to playbooks/roles/foobazdmx/templates/foobazdmx-shop.service.j2 diff --git a/roles/foobazdmx/templates/foobazdmx.service.j2 b/playbooks/roles/foobazdmx/templates/foobazdmx.service.j2 similarity index 100% rename from roles/foobazdmx/templates/foobazdmx.service.j2 rename to playbooks/roles/foobazdmx/templates/foobazdmx.service.j2 diff --git a/roles/infrastructure_authorized_keys/README.md b/playbooks/roles/infrastructure_authorized_keys/README.md similarity index 100% rename from roles/infrastructure_authorized_keys/README.md rename to playbooks/roles/infrastructure_authorized_keys/README.md diff --git a/roles/infrastructure_authorized_keys/tasks/main.yaml b/playbooks/roles/infrastructure_authorized_keys/tasks/main.yaml similarity index 100% rename from roles/infrastructure_authorized_keys/tasks/main.yaml rename to playbooks/roles/infrastructure_authorized_keys/tasks/main.yaml diff --git a/roles/nextcloud/README.md b/playbooks/roles/nextcloud/README.md similarity index 100% rename from roles/nextcloud/README.md rename to playbooks/roles/nextcloud/README.md diff --git a/roles/nextcloud/defaults/main.yaml b/playbooks/roles/nextcloud/defaults/main.yaml similarity index 100% rename from roles/nextcloud/defaults/main.yaml rename to playbooks/roles/nextcloud/defaults/main.yaml diff --git a/roles/nextcloud/files/supervisord.conf b/playbooks/roles/nextcloud/files/supervisord.conf similarity index 100% rename from roles/nextcloud/files/supervisord.conf rename to playbooks/roles/nextcloud/files/supervisord.conf diff --git a/roles/nextcloud/meta/argument_specs.yaml b/playbooks/roles/nextcloud/meta/argument_specs.yaml similarity index 100% rename from roles/nextcloud/meta/argument_specs.yaml rename to playbooks/roles/nextcloud/meta/argument_specs.yaml diff --git a/roles/nextcloud/meta/main.yaml b/playbooks/roles/nextcloud/meta/main.yaml similarity index 100% rename from roles/nextcloud/meta/main.yaml rename to playbooks/roles/nextcloud/meta/main.yaml diff --git a/roles/nextcloud/tasks/main.yaml b/playbooks/roles/nextcloud/tasks/main.yaml similarity index 100% rename from roles/nextcloud/tasks/main.yaml rename to playbooks/roles/nextcloud/tasks/main.yaml diff --git a/roles/nextcloud/templates/compose.yaml.j2 b/playbooks/roles/nextcloud/templates/compose.yaml.j2 similarity index 100% rename from roles/nextcloud/templates/compose.yaml.j2 rename to playbooks/roles/nextcloud/templates/compose.yaml.j2 diff --git a/roles/nextcloud/templates/nginx_nextcloud.conf.j2 b/playbooks/roles/nextcloud/templates/nginx_nextcloud.conf.j2 similarity index 100% rename from roles/nextcloud/templates/nginx_nextcloud.conf.j2 rename to playbooks/roles/nextcloud/templates/nginx_nextcloud.conf.j2 diff --git a/roles/nginx/README.md b/playbooks/roles/nginx/README.md similarity index 100% rename from roles/nginx/README.md rename to playbooks/roles/nginx/README.md diff --git a/roles/nginx/defaults/main.yaml b/playbooks/roles/nginx/defaults/main.yaml similarity index 100% rename from roles/nginx/defaults/main.yaml rename to playbooks/roles/nginx/defaults/main.yaml diff --git a/roles/nginx/files/redirect.conf b/playbooks/roles/nginx/files/redirect.conf similarity index 100% rename from roles/nginx/files/redirect.conf rename to playbooks/roles/nginx/files/redirect.conf diff --git a/roles/nginx/files/tls.conf b/playbooks/roles/nginx/files/tls.conf similarity index 100% rename from roles/nginx/files/tls.conf rename to playbooks/roles/nginx/files/tls.conf diff --git a/roles/nginx/handlers/main.yaml b/playbooks/roles/nginx/handlers/main.yaml similarity index 100% rename from roles/nginx/handlers/main.yaml rename to playbooks/roles/nginx/handlers/main.yaml diff --git a/roles/nginx/meta/argument_specs.yaml b/playbooks/roles/nginx/meta/argument_specs.yaml similarity index 100% rename from roles/nginx/meta/argument_specs.yaml rename to playbooks/roles/nginx/meta/argument_specs.yaml diff --git a/roles/nginx/meta/main.yaml b/playbooks/roles/nginx/meta/main.yaml similarity index 100% rename from roles/nginx/meta/main.yaml rename to playbooks/roles/nginx/meta/main.yaml diff --git a/roles/nginx/tasks/main.yaml b/playbooks/roles/nginx/tasks/main.yaml similarity index 100% rename from roles/nginx/tasks/main.yaml rename to playbooks/roles/nginx/tasks/main.yaml diff --git a/roles/nginx/tasks/main/config_deploy.yaml b/playbooks/roles/nginx/tasks/main/config_deploy.yaml similarity index 100% rename from roles/nginx/tasks/main/config_deploy.yaml rename to playbooks/roles/nginx/tasks/main/config_deploy.yaml diff --git a/roles/nginx/tasks/main/nginx_install.yaml b/playbooks/roles/nginx/tasks/main/nginx_install.yaml similarity index 100% rename from roles/nginx/tasks/main/nginx_install.yaml rename to playbooks/roles/nginx/tasks/main/nginx_install.yaml diff --git a/roles/nginx/tasks/main/repo_setup.yaml b/playbooks/roles/nginx/tasks/main/repo_setup.yaml similarity index 100% rename from roles/nginx/tasks/main/repo_setup.yaml rename to playbooks/roles/nginx/tasks/main/repo_setup.yaml diff --git a/roles/nginx/tasks/make_sure_nginx_configuration_names_are_valid.yaml b/playbooks/roles/nginx/tasks/make_sure_nginx_configuration_names_are_valid.yaml similarity index 100% rename from roles/nginx/tasks/make_sure_nginx_configuration_names_are_valid.yaml rename to playbooks/roles/nginx/tasks/make_sure_nginx_configuration_names_are_valid.yaml diff --git a/roles/ola/handlers/main.yaml b/playbooks/roles/ola/handlers/main.yaml similarity index 100% rename from roles/ola/handlers/main.yaml rename to playbooks/roles/ola/handlers/main.yaml diff --git a/roles/ola/meta/argument_specs.yaml b/playbooks/roles/ola/meta/argument_specs.yaml similarity index 100% rename from roles/ola/meta/argument_specs.yaml rename to playbooks/roles/ola/meta/argument_specs.yaml diff --git a/roles/ola/meta/main.yaml b/playbooks/roles/ola/meta/main.yaml similarity index 100% rename from roles/ola/meta/main.yaml rename to playbooks/roles/ola/meta/main.yaml diff --git a/roles/ola/tasks/main.yaml b/playbooks/roles/ola/tasks/main.yaml similarity index 100% rename from roles/ola/tasks/main.yaml rename to playbooks/roles/ola/tasks/main.yaml diff --git a/roles/ola/templates/ola-ftdidmx.conf.j2 b/playbooks/roles/ola/templates/ola-ftdidmx.conf.j2 similarity index 100% rename from roles/ola/templates/ola-ftdidmx.conf.j2 rename to playbooks/roles/ola/templates/ola-ftdidmx.conf.j2 diff --git a/roles/prometheus_node_exporter/meta/main.yaml b/playbooks/roles/prometheus_node_exporter/meta/main.yaml similarity index 100% rename from roles/prometheus_node_exporter/meta/main.yaml rename to playbooks/roles/prometheus_node_exporter/meta/main.yaml diff --git a/roles/prometheus_node_exporter/tasks/main.yaml b/playbooks/roles/prometheus_node_exporter/tasks/main.yaml similarity index 100% rename from roles/prometheus_node_exporter/tasks/main.yaml rename to playbooks/roles/prometheus_node_exporter/tasks/main.yaml diff --git a/resources/chaosknoten/ccchoir/docker_compose/compose.yaml.j2 b/playbooks/templates/chaosknoten/configs/ccchoir/compose.yaml.j2 similarity index 100% rename from resources/chaosknoten/ccchoir/docker_compose/compose.yaml.j2 rename to playbooks/templates/chaosknoten/configs/ccchoir/compose.yaml.j2 diff --git a/resources/chaosknoten/cloud/nextcloud/config.php.j2 b/playbooks/templates/chaosknoten/configs/cloud/config.php.j2 similarity index 100% rename from resources/chaosknoten/cloud/nextcloud/config.php.j2 rename to playbooks/templates/chaosknoten/configs/cloud/config.php.j2 diff --git a/resources/chaosknoten/cloud/nextcloud/extra_configuration.config.php.j2 b/playbooks/templates/chaosknoten/configs/cloud/extra_configuration.config.php.j2 similarity index 100% rename from resources/chaosknoten/cloud/nextcloud/extra_configuration.config.php.j2 rename to playbooks/templates/chaosknoten/configs/cloud/extra_configuration.config.php.j2 diff --git a/playbooks/templates/chaosknoten/configs/engelsystem/compose.yaml.j2 b/playbooks/templates/chaosknoten/configs/engelsystem/compose.yaml.j2 new file mode 100644 index 0000000..58886dc --- /dev/null +++ b/playbooks/templates/chaosknoten/configs/engelsystem/compose.yaml.j2 @@ -0,0 +1,55 @@ +--- +services: + es_server: + image: es_server + restart: unless-stopped + build: + context: /home/chaos/engelsystem + dockerfile: /home/chaos/engelsystem/docker/Dockerfile + environment: + MYSQL_HOST: es_database + MYSQL_USER: engelsystem + MYSQL_PASSWORD: engelsystem + MYSQL_DATABASE: engelsystem + APP_NAME: CCCamp2023 Alternative Engelsystem + APP_URL: https://aes.ccchh.net + CONTACT_EMAIL: mailto:aes@hamburg.ccc.de + GOODIE_TYPE: none + ENABLE_VOUCHER: false + MAIL_DRIVER: smtp + MAIL_FROM_ADDRESS: aes@send-only-mail.ccchh.net + MAIL_HOST: send-only-mailserver.ccchh.net + MAIL_PORT: 465 + MAIL_ENCRYPTION: tls + MAIL_USERNAME: aes + MAIL_PASSWORD: {{ lookup("community.general.passwordstore", "noc/vm-secrets/chaosknoten/engelsystem/MAIL_PASSWORD", create=false, missing="error") }} + ports: + - "5080:80" + networks: + - database + - internet + depends_on: + - es_database + extra_hosts: + - "send-only-mailserver.ccchh.net:185.161.129.132" + + es_database: + image: mariadb:10.2 + restart: unless-stopped + environment: + MYSQL_DATABASE: engelsystem + MYSQL_USER: engelsystem + MYSQL_PASSWORD: engelsystem + MYSQL_RANDOM_ROOT_PASSWORD: 1 + MYSQL_INITDB_SKIP_TZINFO: "yes" + volumes: + - db:/var/lib/mysql + networks: + - database +volumes: + db: {} + +networks: + database: + internal: true + internet: diff --git a/resources/chaosknoten/grafana/docker_compose/compose.yaml.j2 b/playbooks/templates/chaosknoten/configs/grafana/compose.yaml.j2 similarity index 100% rename from resources/chaosknoten/grafana/docker_compose/compose.yaml.j2 rename to playbooks/templates/chaosknoten/configs/grafana/compose.yaml.j2 diff --git a/resources/chaosknoten/grafana/docker_compose/alertmanager.yaml.j2 b/playbooks/templates/chaosknoten/configs/grafana/docker_compose/alertmanager.yaml.j2 similarity index 100% rename from resources/chaosknoten/grafana/docker_compose/alertmanager.yaml.j2 rename to playbooks/templates/chaosknoten/configs/grafana/docker_compose/alertmanager.yaml.j2 diff --git a/resources/chaosknoten/grafana/docker_compose/grafana.ini.j2 b/playbooks/templates/chaosknoten/configs/grafana/docker_compose/grafana.ini similarity index 100% rename from resources/chaosknoten/grafana/docker_compose/grafana.ini.j2 rename to playbooks/templates/chaosknoten/configs/grafana/docker_compose/grafana.ini diff --git a/resources/chaosknoten/keycloak/docker_compose/compose.yaml.j2 b/playbooks/templates/chaosknoten/configs/keycloak/compose.yaml.j2 similarity index 100% rename from resources/chaosknoten/keycloak/docker_compose/compose.yaml.j2 rename to playbooks/templates/chaosknoten/configs/keycloak/compose.yaml.j2 diff --git a/resources/chaosknoten/onlyoffice/docker_compose/compose.yaml.j2 b/playbooks/templates/chaosknoten/configs/onlyoffice/compose.yaml.j2 similarity index 100% rename from resources/chaosknoten/onlyoffice/docker_compose/compose.yaml.j2 rename to playbooks/templates/chaosknoten/configs/onlyoffice/compose.yaml.j2 diff --git a/resources/chaosknoten/pad/docker_compose/compose.yaml.j2 b/playbooks/templates/chaosknoten/configs/pad/compose.yaml.j2 similarity index 100% rename from resources/chaosknoten/pad/docker_compose/compose.yaml.j2 rename to playbooks/templates/chaosknoten/configs/pad/compose.yaml.j2 diff --git a/resources/chaosknoten/pretalx/docker_compose/compose.yaml.j2 b/playbooks/templates/chaosknoten/configs/pretalx/compose.yaml.j2 similarity index 100% rename from resources/chaosknoten/pretalx/docker_compose/compose.yaml.j2 rename to playbooks/templates/chaosknoten/configs/pretalx/compose.yaml.j2 diff --git a/resources/chaosknoten/tickets/docker_compose/compose.yaml.j2 b/playbooks/templates/chaosknoten/configs/tickets/compose.yaml.j2 similarity index 100% rename from resources/chaosknoten/tickets/docker_compose/compose.yaml.j2 rename to playbooks/templates/chaosknoten/configs/tickets/compose.yaml.j2 diff --git a/resources/chaosknoten/tickets/docker_compose/pretix.cfg.j2 b/playbooks/templates/chaosknoten/configs/tickets/pretix.cfg.j2 similarity index 100% rename from resources/chaosknoten/tickets/docker_compose/pretix.cfg.j2 rename to playbooks/templates/chaosknoten/configs/tickets/pretix.cfg.j2 diff --git a/resources/chaosknoten/zammad/docker_compose/compose.yaml.j2 b/playbooks/templates/chaosknoten/configs/zammad/compose.yaml.j2 similarity index 100% rename from resources/chaosknoten/zammad/docker_compose/compose.yaml.j2 rename to playbooks/templates/chaosknoten/configs/zammad/compose.yaml.j2