1.backup origin deploy.yml to backup_deploy_yml_file
2.merge small task file to one directory
This commit is contained in:
13
tasks/verify/verify_systemctl_sapp.yml
Normal file
13
tasks/verify/verify_systemctl_sapp.yml
Normal 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"
|
||||
Reference in New Issue
Block a user