修改在生成sapplog软连接时由于 sapp log路径不存在和软连接目的目录存在导致软连接失败问题
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user