From 363348f16908d1e5225ed4eee693a42e177756bf Mon Sep 17 00:00:00 2001 From: fumingwei Date: Fri, 20 Nov 2020 16:45:56 +0600 Subject: [PATCH] 1.add restart scripts adc-exporter-systemd --- .../restart_adc-exporter-systemd.yml | 14 ++++++++++++++ tasks/restart_process/restart_process.yml | 1 + 2 files changed, 15 insertions(+) create mode 100644 tasks/restart_process/restart_adc-exporter-systemd.yml diff --git a/tasks/restart_process/restart_adc-exporter-systemd.yml b/tasks/restart_process/restart_adc-exporter-systemd.yml new file mode 100644 index 0000000..f020f91 --- /dev/null +++ b/tasks/restart_process/restart_adc-exporter-systemd.yml @@ -0,0 +1,14 @@ +- hosts: + - adc_mcn0 + - adc_mcn1 + - adc_mcn2 + - adc_mcn3 + remote_user: root + tasks: + - name: 'adc-exporter-systemd service start' + systemd: + name: adc-exporter-systemd + enabled: yes + daemon_reload: yes + state: restarted + diff --git a/tasks/restart_process/restart_process.yml b/tasks/restart_process/restart_process.yml index 3774f00..b1a8cd5 100644 --- a/tasks/restart_process/restart_process.yml +++ b/tasks/restart_process/restart_process.yml @@ -3,3 +3,4 @@ - include: restart_sapp.yml - include: restart_certstore.yml - include: restart_tfe.yml +- include: restart_adc-exporter-systemd.yml