From db4be7f6f885c771a31c0f4a5baa9c75d147bf9c Mon Sep 17 00:00:00 2001 From: fumingwei Date: Sat, 11 Sep 2021 13:41:03 +0800 Subject: [PATCH] =?UTF-8?q?bugfix:=E5=A2=9E=E5=8A=A07400=E9=80=9A=E8=BF=87?= =?UTF-8?q?provision-config-apply=E9=87=8D=E5=90=AF=E6=9C=8D=E5=8A=A1?= =?UTF-8?q?=E6=93=8D=E4=BD=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../files/tasks/provision.yml.7400MCN0P01R01 | 63 +++++++++++++++++++ .../tasks/provision.yml.7400MCN123P01R01 | 30 +++++++++ 2 files changed, 93 insertions(+) diff --git a/ansible/roles/tsg-os-provision/files/tasks/provision.yml.7400MCN0P01R01 b/ansible/roles/tsg-os-provision/files/tasks/provision.yml.7400MCN0P01R01 index ac01679d..acbf89af 100644 --- a/ansible/roles/tsg-os-provision/files/tasks/provision.yml.7400MCN0P01R01 +++ b/ansible/roles/tsg-os-provision/files/tasks/provision.yml.7400MCN0P01R01 @@ -225,3 +225,66 @@ copy: src: /data/tsg-os-provision/provision.yml dest: /data/tsg-os-provision/provision.yml.snapshot + + - name: "tsg-os-provision: restart maat-redis" + systemd: + name: maat-redis + enabled: yes + state: started + when: + - feature.enable_policy_local_cache == 1 + - enable_config_apply == '1' + + - name: "tsg-os-provision: restart mrenv" + systemd: + name: mrenv + state: restarted + when: enable_config_apply == '1' + + - name: "tsg-os-provision: restart mrzcpd" + systemd: + name: mrzcpd + state: restarted + when: enable_config_apply == '1' + + - name: "tsg-os-provision: restart mrapm_device" + systemd: + name: mrapm_device + state: restarted + when: enable_config_apply == '1' + + - name: "tsg-os-provision: restart mrapm_stream" + systemd: + name: mrapm_stream + state: restarted + when: enable_config_apply == '1' + + - name: "tsg-os-provision: restart telegraf_statistic" + systemd: + name: telegraf_statistic + state: restarted + when: enable_config_apply == '1' + + - name: "tsg-os-provision: restart certstore" + systemd: + name: certstore + state: restarted + when: enable_config_apply == '1' + + - name: "tsg-os-provision: restart cert-redis" + systemd: + name: cert-redis + state: restarted + when: enable_config_apply == '1' + + - name: "tsg-os-provision: restart sapp" + systemd: + name: sapp + state: restarted + when: enable_config_apply == '1' + + - name: "tsg-os-provision: restart tfe" + systemd: + name: tfe + state: restarted + when: enable_config_apply == '1' \ No newline at end of file diff --git a/ansible/roles/tsg-os-provision/files/tasks/provision.yml.7400MCN123P01R01 b/ansible/roles/tsg-os-provision/files/tasks/provision.yml.7400MCN123P01R01 index 53035cd3..da35c503 100644 --- a/ansible/roles/tsg-os-provision/files/tasks/provision.yml.7400MCN123P01R01 +++ b/ansible/roles/tsg-os-provision/files/tasks/provision.yml.7400MCN123P01R01 @@ -99,3 +99,33 @@ copy: src: /data/tsg-os-provision/provision.yml dest: /data/tsg-os-provision/provision.yml.snapshot + + - name: "tsg-os-provision: restart mrenv" + systemd: + name: mrenv + state: restarted + when: enable_config_apply == '1' + + - name: "tsg-os-provision: restart mrzcpd" + systemd: + name: mrzcpd + state: restarted + when: enable_config_apply == '1' + + - name: "tsg-os-provision: restart mrapm_device" + systemd: + name: mrapm_device + state: restarted + when: enable_config_apply == '1' + + - name: "tsg-os-provision: restart mrapm_stream" + systemd: + name: mrapm_stream + state: restarted + when: enable_config_apply == '1' + + - name: "tsg-os-provision: restart tfe" + systemd: + name: tfe + state: restarted + when: enable_config_apply == '1'