From a7bb2f43516acaf0b314a2a41eb68f202bfd5041 Mon Sep 17 00:00:00 2001 From: "Al hel md. shahriar zaman" Date: Fri, 20 Dec 2024 17:15:00 +0600 Subject: [PATCH] make sure backup error file exists --- infrastructure/server-setup/tasks/application.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/infrastructure/server-setup/tasks/application.yml b/infrastructure/server-setup/tasks/application.yml index 4d70e66b4..a1a441de3 100644 --- a/infrastructure/server-setup/tasks/application.yml +++ b/infrastructure/server-setup/tasks/application.yml @@ -49,6 +49,14 @@ state: touch mode: 'u+rwX,g+rwX,o-rwx' +- name: Create backup logfile for error + ansible.builtin.file: + path: /var/log/opencrvs-backup.error.log + owner: '{{ ansible_user }}' + group: 'application' + state: touch + mode: 'u+rwX,g+rwX,o-rwx' + - name: Create restore logfile ansible.builtin.file: path: /var/log/opencrvs-restore.log