Compare commits

..

3 Commits

Author SHA1 Message Date
dc00b4cbaf
fix: variable 2024-02-04 01:53:47 +01:00
0366e2011f
fix: rename issue 2024-02-04 01:47:56 +01:00
56c0b90e09
fix: foreach 2024-02-04 01:40:43 +01:00
3 changed files with 8 additions and 8 deletions

View File

@ -20,14 +20,14 @@
mode: 0775 mode: 0775
recurse: yes recurse: yes
- name: Create paperless redis folder - name: Create nextcloud redis folder
file: file:
path: "/var/nextcloud/redis" path: "/var/nextcloud/redis"
state: directory state: directory
mode: 0775 mode: 0775
recurse: yes recurse: yes
- name: Create paperless postgres folder - name: Create nextcloud postgres folder
file: file:
path: "/var/nextcloud/postgres" path: "/var/nextcloud/postgres"
state: directory state: directory
@ -68,7 +68,7 @@
- name: Copy nextcloud-web.container - name: Copy nextcloud-web.container
ansible.builtin.template: ansible.builtin.template:
src: paperless-ngx-tika.quadlet.j2 src: nextcloud-web.quadlet.j2
dest: "/etc/containers/systemd/nextcloud-web.container" dest: "/etc/containers/systemd/nextcloud-web.container"
- name: "Reload systemd" - name: "Reload systemd"
@ -82,10 +82,10 @@
name: nextcloud-redis name: nextcloud-redis
state: started state: started
- name: Start Paperless-ngs Postgres - name: Start nextcloud Postgres
systemd_service: systemd_service:
enabled: true enabled: true
name: paperless-ngx-postgres name: nextcloud-postgres
state: started state: started
notify: notify:

View File

@ -16,7 +16,7 @@ Environment=POSTGRES_USER=nextcloud
Environment=POSTGRES_PASSWORD=nextcloud Environment=POSTGRES_PASSWORD=nextcloud
Environment=POSTGRES_DB=nextcloud Environment=POSTGRES_DB=nextcloud
Environment=NEXTCLOUD_TRUSTED_DOMAINS=(% for domain in nextcloud_domains %){{domain}} (% endfor %) Environment=NEXTCLOUD_TRUSTED_DOMAINS={{ nextcloud_domains|join(" ") }}
Network=nextcloud.network Network=nextcloud.network

View File

@ -14,13 +14,13 @@ Network=nextcloud.network
Volume=/var/nextcloud/web/nginx.conf:/etc/nginx/nginx.conf Volume=/var/nextcloud/web/nginx.conf:/etc/nginx/nginx.conf
Volume=/var/nextcloud/app:/var/www/html:z Volume=/var/nextcloud/app:/var/www/html:z
(% for domain in nextcloud_domains %) {% for domain in nextcloud_domains -%}
Label="traefik.http.routers.nextcloud{{loop.index}}.tls.certresolver=resolver" Label="traefik.http.routers.nextcloud{{loop.index}}.tls.certresolver=resolver"
Label="traefik.http.routers.nextcloud{{loop.index}}.tls=true" Label="traefik.http.routers.nextcloud{{loop.index}}.tls=true"
Label="traefik.http.routers.nextcloud{{loop.index}}.rule=Host(`{{ domain }}`)" Label="traefik.http.routers.nextcloud{{loop.index}}.rule=Host(`{{ domain }}`)"
Label="traefik.http.routers.nextcloud{{loop.index}}.service=nextcloud{{loop.index}}" Label="traefik.http.routers.nextcloud{{loop.index}}.service=nextcloud{{loop.index}}"
Label="traefik.http.services.nextcloud{{loop.index}}.loadbalancer.server.port=80" Label="traefik.http.services.nextcloud{{loop.index}}.loadbalancer.server.port=80"
(% endfor %) {% endfor %}
[Service] [Service]
Restart=on-failure Restart=on-failure