1. add sapp and tfe restart role
This commit is contained in:
12
restart_sapp_and_tfe.yml
Normal file
12
restart_sapp_and_tfe.yml
Normal 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
|
||||||
7
roles/sapp_restart/tasks/main.yml
Normal file
7
roles/sapp_restart/tasks/main.yml
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
- name: 'sapp service start'
|
||||||
|
systemd:
|
||||||
|
name: sapp
|
||||||
|
enabled: yes
|
||||||
|
daemon_reload: yes
|
||||||
|
state: restarted
|
||||||
|
|
||||||
7
roles/tfe_restart/tasks/main.yml
Normal file
7
roles/tfe_restart/tasks/main.yml
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
- name: 'sapp service start'
|
||||||
|
systemd:
|
||||||
|
name: tfe
|
||||||
|
enabled: yes
|
||||||
|
daemon_reload: yes
|
||||||
|
state: restarted
|
||||||
|
|
||||||
Reference in New Issue
Block a user