1.add new city Kokshetau deploy config

2.add verify tfe and sapp service
This commit is contained in:
fumingwei
2020-11-21 09:51:40 +06:00
parent 49c88ee357
commit adcaf5cb4c
11 changed files with 469 additions and 0 deletions

10
tasks/ping_test.yml Normal file
View File

@@ -0,0 +1,10 @@
- hosts:
- adc_mxn
- adc_mcn0
- adc_mcn1
- adc_mcn2
- adc_mcn3
remote_user: root
tasks:
- name: "ping test"
ping:

View File

@@ -0,0 +1,13 @@
- hosts: adc_mcn0
remote_user: root
tasks:
- name: "register systemctl status sapp result"
shell: systemctl status sapp
register: sapp_results
- name: assert
assert:
that:
- sapp_results.stdout.find('active (running)') != -1
fail_msg: "FAIL"
success_msg: "PASS"

View File

@@ -0,0 +1,16 @@
- hosts:
- adc_mcn1
- adc_mcn2
- adc_mcn3
remote_user: root
tasks:
- name: "register systemctl status tfe result"
shell: systemctl status tfe
register: tfe_results
- name: assert
assert:
that:
- tfe_results.stdout.find('active (running)') != -1
fail_msg: "FAIL"
success_msg: "PASS"