1. add sapp and tfe restart role

This commit is contained in:
fumingwei
2020-11-12 18:01:52 +06:00
parent 69d88a9fd0
commit 1ed71dd67d
3 changed files with 26 additions and 0 deletions

12
restart_sapp_and_tfe.yml Normal file
View File

@@ -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

View File

@@ -0,0 +1,7 @@
- name: 'sapp service start'
systemd:
name: sapp
enabled: yes
daemon_reload: yes
state: restarted

View File

@@ -0,0 +1,7 @@
- name: 'sapp service start'
systemd:
name: tfe
enabled: yes
daemon_reload: yes
state: restarted