fixed cloud data persistence

This commit is contained in:
Bastian de Byl
2022-10-03 23:02:50 -04:00
parent 6672384955
commit 25be59e028

View File

@@ -11,6 +11,7 @@
loop: loop:
- "{{ cloud_path }}/mysql" - "{{ cloud_path }}/mysql"
- "{{ cloud_path }}/data" - "{{ cloud_path }}/data"
- "{{ cloud_path }}/config"
tags: cloud tags: cloud
- name: unshare chown the elastic volume - name: unshare chown the elastic volume
@@ -18,7 +19,7 @@
become_user: "{{ podman_user }}" become_user: "{{ podman_user }}"
changed_when: false changed_when: false
ansible.builtin.command: | ansible.builtin.command: |
podman unshare chown -R 33:33 {{ cloud_path }}/data podman unshare chown -R 33:33 {{ cloud_path }}/data {{ cloud_path}}/config
tags: cloud tags: cloud
- name: get user/group id from unshare - name: get user/group id from unshare
@@ -88,6 +89,7 @@
MYSQL_USER: cloud MYSQL_USER: cloud
volumes: volumes:
- "{{ cloud_path }}/data:/var/www/html/data" - "{{ cloud_path }}/data:/var/www/html/data"
- "{{ cloud_path }}/config:/var/www/html/config"
ports: ports:
- "8089:80" - "8089:80"
tags: cloud tags: cloud