From 25be59e02830f307c00ae39cc04f1055ccd19cca Mon Sep 17 00:00:00 2001 From: Bastian de Byl Date: Mon, 3 Oct 2022 23:02:50 -0400 Subject: [PATCH] fixed cloud data persistence --- ansible/roles/podman/tasks/container-cloud.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ansible/roles/podman/tasks/container-cloud.yml b/ansible/roles/podman/tasks/container-cloud.yml index 3a745bb..0c526d5 100644 --- a/ansible/roles/podman/tasks/container-cloud.yml +++ b/ansible/roles/podman/tasks/container-cloud.yml @@ -11,6 +11,7 @@ loop: - "{{ cloud_path }}/mysql" - "{{ cloud_path }}/data" + - "{{ cloud_path }}/config" tags: cloud - name: unshare chown the elastic volume @@ -18,7 +19,7 @@ become_user: "{{ podman_user }}" changed_when: false 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 - name: get user/group id from unshare @@ -88,6 +89,7 @@ MYSQL_USER: cloud volumes: - "{{ cloud_path }}/data:/var/www/html/data" + - "{{ cloud_path }}/config:/var/www/html/config" ports: - "8089:80" tags: cloud