From 7e515c40e2de61fe1ea3acc54be82c5c8191c462 Mon Sep 17 00:00:00 2001 From: Stefan Haun Date: Mon, 3 Apr 2023 13:35:54 +0200 Subject: [PATCH] :truck: Change git data dir from gitea to forgejo This change includes a manual directory rename on the server --- host-pottwal.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/host-pottwal.yml b/host-pottwal.yml index 891854a..1829b8e 100644 --- a/host-pottwal.yml +++ b/host-pottwal.yml @@ -37,14 +37,14 @@ tasks: - - name: Check if gitea data dir exists + - name: Check if forgejo data dir exists ansible.builtin.stat: - path: "{{ data_dir }}/gitea" - register: gitea_dir - - name: Fail if gitea data dir does not exist + path: "{{ data_dir }}/forgejo" + register: forgejo_dir + - name: Fail if forgejo data dir does not exist ansible.builtin.fail: - msg: "Gitea data dir is missing, please restore from the backup!" - when: not gitea_dir.stat.exists + msg: "Forgejo data dir is missing, please restore from the backup!" + when: not forgejo_dir.stat.exists # If port 2222 is changed here, it must also be adapted # in the gitea config file (see application volume)!! @@ -71,7 +71,7 @@ USER_UID: "1000" USER_GID: "1000" volumes: - - "{{ data_dir }}/gitea:/data:rw" + - "{{ data_dir }}/forgejo:/data:rw" - name: Setup proxy site gitea.n39.eu include_role: