From bcf53e3155b2a37db3b70728ae20cdec65cd7f9c Mon Sep 17 00:00:00 2001 From: fumingwei Date: Thu, 20 May 2021 13:28:59 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=9C=A8=E7=94=9F=E6=88=90sa?= =?UTF-8?q?pplog=E8=BD=AF=E8=BF=9E=E6=8E=A5=E6=97=B6=E7=94=B1=E4=BA=8E=20s?= =?UTF-8?q?app=20log=E8=B7=AF=E5=BE=84=E4=B8=8D=E5=AD=98=E5=9C=A8=E5=92=8C?= =?UTF-8?q?=E8=BD=AF=E8=BF=9E=E6=8E=A5=E7=9B=AE=E7=9A=84=E7=9B=AE=E5=BD=95?= =?UTF-8?q?=E5=AD=98=E5=9C=A8=E5=AF=BC=E8=87=B4=E8=BD=AF=E8=BF=9E=E6=8E=A5?= =?UTF-8?q?=E5=A4=B1=E8=B4=A5=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tsg-9140-scripts/roles/sapp/tasks/main.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/tsg-9140-scripts/roles/sapp/tasks/main.yml b/tsg-9140-scripts/roles/sapp/tasks/main.yml index 41edc92e..ae73619c 100644 --- a/tsg-9140-scripts/roles/sapp/tasks/main.yml +++ b/tsg-9140-scripts/roles/sapp/tasks/main.yml @@ -76,9 +76,17 @@ dest: /usr/lib/systemd/system/sapp.service.d/ mode: 0644 +- name: "Create /home/mesasoft/sapp_run/log/ directory if it does not exist" + file: + path: "{{ item }}" + state: directory + mode: '0755' + with_items: + - /home/mesasoft/sapp_run/log + - name: "Create a symbolic link for sapp logs" file: - src: /home/mesasoft/sapp_run/log/ - dest: /var/log/sapp/ + src: /home/mesasoft/sapp_run/log + dest: /var/log/sapp state: link