From ff6e4e8858993c7cd58400b72ddfadcc26497c4e Mon Sep 17 00:00:00 2001 From: lijia Date: Mon, 23 Nov 2020 14:22:53 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dtsg=5Fmonitor=5Fcleanup=5Ftmp?= =?UTF-8?q?.sh=E6=96=87=E4=BB=B6,=20=E5=9C=A8windows=E7=B3=BB=E7=BB=9F?= =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E8=BE=93=E8=BF=87=E4=B9=8B=E5=90=8E,=20?= =?UTF-8?q?=E4=B8=A2=E5=A4=B1=E4=BA=86=E5=8F=AF=E6=89=A7=E8=A1=8C=E6=9D=83?= =?UTF-8?q?=E9=99=90BUG.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- roles/tsg-cli-mcn0/tasks/main.yml | 3 ++- roles/tsg-cli-mcn1/tasks/main.yml | 3 ++- roles/tsg-cli-mcn2/tasks/main.yml | 3 ++- roles/tsg-cli-mcn3/tasks/main.yml | 3 ++- roles/tsg-cli-mxn/tasks/main.yml | 3 ++- 5 files changed, 10 insertions(+), 5 deletions(-) diff --git a/roles/tsg-cli-mcn0/tasks/main.yml b/roles/tsg-cli-mcn0/tasks/main.yml index 74d5ab6..aa86584 100644 --- a/roles/tsg-cli-mcn0/tasks/main.yml +++ b/roles/tsg-cli-mcn0/tasks/main.yml @@ -58,9 +58,10 @@ dest: "/etc/" - name: "copy tsg_monitor_cleanup_tmp.sh to destination server" - synchronize: + copy: src: "{{ role_path }}/../tsg-common-files/tsg_monitor_cleanup_tmp.sh" dest: "/opt/tsg/tsg-monitor/" + mode: 0755 - name: "restart rsyslog service" diff --git a/roles/tsg-cli-mcn1/tasks/main.yml b/roles/tsg-cli-mcn1/tasks/main.yml index def6c5e..e353d63 100644 --- a/roles/tsg-cli-mcn1/tasks/main.yml +++ b/roles/tsg-cli-mcn1/tasks/main.yml @@ -58,9 +58,10 @@ dest: "/etc/" - name: "copy tsg_monitor_cleanup_tmp.sh to destination server" - synchronize: + copy: src: "{{ role_path }}/../tsg-common-files/tsg_monitor_cleanup_tmp.sh" dest: "/opt/tsg/tsg-monitor/" + mode: 0755 - name: "restart rsyslog service" systemd: diff --git a/roles/tsg-cli-mcn2/tasks/main.yml b/roles/tsg-cli-mcn2/tasks/main.yml index d7e6030..ac2fd19 100644 --- a/roles/tsg-cli-mcn2/tasks/main.yml +++ b/roles/tsg-cli-mcn2/tasks/main.yml @@ -58,9 +58,10 @@ dest: "/etc/" - name: "copy tsg_monitor_cleanup_tmp.sh to destination server" - synchronize: + copy: src: "{{ role_path }}/../tsg-common-files/tsg_monitor_cleanup_tmp.sh" dest: "/opt/tsg/tsg-monitor/" + mode: 0755 - name: "restart rsyslog service" systemd: diff --git a/roles/tsg-cli-mcn3/tasks/main.yml b/roles/tsg-cli-mcn3/tasks/main.yml index 711442a..d47d8ed 100644 --- a/roles/tsg-cli-mcn3/tasks/main.yml +++ b/roles/tsg-cli-mcn3/tasks/main.yml @@ -58,9 +58,10 @@ dest: "/etc/" - name: "copy tsg_monitor_cleanup_tmp.sh to destination server" - synchronize: + copy: src: "{{ role_path }}/../tsg-common-files/tsg_monitor_cleanup_tmp.sh" dest: "/opt/tsg/tsg-monitor/" + mode: 0755 - name: "restart rsyslog service" systemd: diff --git a/roles/tsg-cli-mxn/tasks/main.yml b/roles/tsg-cli-mxn/tasks/main.yml index 3db2440..ef315a5 100644 --- a/roles/tsg-cli-mxn/tasks/main.yml +++ b/roles/tsg-cli-mxn/tasks/main.yml @@ -97,9 +97,10 @@ dest: "/etc/" - name: "copy tsg_monitor_cleanup_tmp.sh to destination server" - synchronize: + copy: src: "{{ role_path }}/../tsg-common-files/tsg_monitor_cleanup_tmp.sh" dest: "/opt/tsg/tsg-monitor/" + mode: 0755 - name: "restart rsyslog service" systemd: