From 1ed71dd67d38d426dabf5b839fa576841c824178 Mon Sep 17 00:00:00 2001 From: fumingwei Date: Thu, 12 Nov 2020 18:01:52 +0600 Subject: [PATCH] 1. add sapp and tfe restart role --- restart_sapp_and_tfe.yml | 12 ++++++++++++ roles/sapp_restart/tasks/main.yml | 7 +++++++ roles/tfe_restart/tasks/main.yml | 7 +++++++ 3 files changed, 26 insertions(+) create mode 100644 restart_sapp_and_tfe.yml create mode 100644 roles/sapp_restart/tasks/main.yml create mode 100644 roles/tfe_restart/tasks/main.yml diff --git a/restart_sapp_and_tfe.yml b/restart_sapp_and_tfe.yml new file mode 100644 index 0000000..d59efc5 --- /dev/null +++ b/restart_sapp_and_tfe.yml @@ -0,0 +1,12 @@ +- hosts: adc_mcn0 + remote_user: root + roles: + - sapp_restart + +- hosts: + - adc_mcn1 + - adc_mcn2 + - adc_mcn3 + remote_user: root + roles: + - tfe_restart diff --git a/roles/sapp_restart/tasks/main.yml b/roles/sapp_restart/tasks/main.yml new file mode 100644 index 0000000..a649cde --- /dev/null +++ b/roles/sapp_restart/tasks/main.yml @@ -0,0 +1,7 @@ +- name: 'sapp service start' + systemd: + name: sapp + enabled: yes + daemon_reload: yes + state: restarted + diff --git a/roles/tfe_restart/tasks/main.yml b/roles/tfe_restart/tasks/main.yml new file mode 100644 index 0000000..00eb0b4 --- /dev/null +++ b/roles/tfe_restart/tasks/main.yml @@ -0,0 +1,7 @@ +- name: 'sapp service start' + systemd: + name: tfe + enabled: yes + daemon_reload: yes + state: restarted +