changed variable structure

This commit is contained in:
2023-06-03 02:41:34 +02:00
parent 814eeca218
commit 6c88689a5b
16 changed files with 140 additions and 159 deletions

View File

@@ -2,7 +2,7 @@
- name: Create Nextcloud directories if they do not exist
become: false
ansible.builtin.file:
path: /home/{{ user['name'] }}/docker/nextcloud/{{ item }}
path: /home/{{ system_user_name }}/docker/nextcloud/{{ item }}
state: directory
mode: '0755'
loop: '{{ nextcloud_folder }}'
@@ -27,7 +27,7 @@
MYSQL_USER: "{{ NEXTCLOUD_MYSQL_USER | string }}"
MYSQL_PASSWORD: "{{ NEXTCLOUD_MYSQL_PASS | string }}"
volumes:
- /home/{{ user['name'] }}/docker/nextcloud/db:/var/lib/mysql
- /home/{{ system_user_name }}/docker/nextcloud/db:/var/lib/mysql
networks:
- name: nextcloud_internal
@@ -38,7 +38,7 @@
state: started
restart_policy: unless-stopped
volumes:
- /home/{{ user['name'] }}/docker/nextcloud/redis:/var/lib/redis
- /home/{{ system_user_name }}/docker/nextcloud/redis:/var/lib/redis
networks:
- name: nextcloud_internal
@@ -60,7 +60,7 @@
REDIS_HOST: nextcloud_redis
volumes:
- /home/{{ user['name'] }}/docker/nextcloud/data:/var/www/html
- /home/{{ system_user_name }}/docker/nextcloud/data:/var/www/html
networks:
- name: nextcloud_internal
- name: proxy