summaryrefslogtreecommitdiff
path: root/tasks/restart_process
diff options
context:
space:
mode:
Diffstat (limited to 'tasks/restart_process')
-rw-r--r--tasks/restart_process/restart_adc-exporter-systemd.yml15
-rw-r--r--tasks/restart_process/restart_certstore.yml11
-rw-r--r--tasks/restart_process/restart_mrzcpd.yml14
-rw-r--r--tasks/restart_process/restart_process.yml7
-rw-r--r--tasks/restart_process/restart_sapp.yml11
-rw-r--r--tasks/restart_process/restart_sapp_tfe_certstore.yml4
-rw-r--r--tasks/restart_process/restart_telegraf_statistic.yml11
-rw-r--r--tasks/restart_process/restart_tfe.yml13
8 files changed, 86 insertions, 0 deletions
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..625abba
--- /dev/null
+++ b/tasks/restart_process/restart_adc-exporter-systemd.yml
@@ -0,0 +1,15 @@
+- hosts:
+ - adc_mxn
+ - 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_certstore.yml b/tasks/restart_process/restart_certstore.yml
new file mode 100644
index 0000000..ddb1baf
--- /dev/null
+++ b/tasks/restart_process/restart_certstore.yml
@@ -0,0 +1,11 @@
+- hosts:
+ - adc_mcn0
+ remote_user: root
+ tasks:
+ - name: 'certstore service start'
+ systemd:
+ name: certstore
+ enabled: yes
+ daemon_reload: yes
+ state: restarted
+
diff --git a/tasks/restart_process/restart_mrzcpd.yml b/tasks/restart_process/restart_mrzcpd.yml
new file mode 100644
index 0000000..39e12ed
--- /dev/null
+++ b/tasks/restart_process/restart_mrzcpd.yml
@@ -0,0 +1,14 @@
+- hosts:
+ - adc_mcn0
+ - adc_mcn1
+ - adc_mcn2
+ - adc_mcn3
+ remote_user: root
+ tasks:
+ - name: 'mrzcpd service start'
+ systemd:
+ name: mrzcpd
+ enabled: yes
+ daemon_reload: yes
+ state: restarted
+
diff --git a/tasks/restart_process/restart_process.yml b/tasks/restart_process/restart_process.yml
new file mode 100644
index 0000000..4df97bd
--- /dev/null
+++ b/tasks/restart_process/restart_process.yml
@@ -0,0 +1,7 @@
+---
+- include: restart_telegraf_statistic.yml
+- include: restart_mrzcpd.yml
+- include: restart_sapp.yml
+- include: restart_certstore.yml
+- include: restart_tfe.yml
+- include: restart_adc-exporter-systemd.yml
diff --git a/tasks/restart_process/restart_sapp.yml b/tasks/restart_process/restart_sapp.yml
new file mode 100644
index 0000000..71775fd
--- /dev/null
+++ b/tasks/restart_process/restart_sapp.yml
@@ -0,0 +1,11 @@
+- hosts:
+ - adc_mcn0
+ remote_user: root
+ tasks:
+ - name: 'sapp service start'
+ systemd:
+ name: sapp
+ enabled: yes
+ daemon_reload: yes
+ state: restarted
+
diff --git a/tasks/restart_process/restart_sapp_tfe_certstore.yml b/tasks/restart_process/restart_sapp_tfe_certstore.yml
new file mode 100644
index 0000000..dd10ef2
--- /dev/null
+++ b/tasks/restart_process/restart_sapp_tfe_certstore.yml
@@ -0,0 +1,4 @@
+---
+- include: restart_sapp.yml
+- include: restart_certstore.yml
+- include: restart_tfe.yml
diff --git a/tasks/restart_process/restart_telegraf_statistic.yml b/tasks/restart_process/restart_telegraf_statistic.yml
new file mode 100644
index 0000000..da182db
--- /dev/null
+++ b/tasks/restart_process/restart_telegraf_statistic.yml
@@ -0,0 +1,11 @@
+- hosts:
+ - adc_mcn0
+ remote_user: root
+ tasks:
+ - name: 'telegraf_statistic service start'
+ systemd:
+ name: telegraf_statistic
+ enabled: yes
+ daemon_reload: yes
+ state: restarted
+
diff --git a/tasks/restart_process/restart_tfe.yml b/tasks/restart_process/restart_tfe.yml
new file mode 100644
index 0000000..2754d8f
--- /dev/null
+++ b/tasks/restart_process/restart_tfe.yml
@@ -0,0 +1,13 @@
+- hosts:
+ - adc_mcn1
+ - adc_mcn2
+ - adc_mcn3
+ remote_user: root
+ tasks:
+ - name: 'tfe service start'
+ systemd:
+ name: tfe
+ enabled: yes
+ daemon_reload: yes
+ state: restarted
+