This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
solutions-tsg-scripts/tasks/verify/verify_systemctl_sapp.yml
fumingwei cf2e80c4d7 1.backup origin deploy.yml to backup_deploy_yml_file
2.merge small task file to one directory
2020-11-27 16:56:49 +06:00

14 lines
327 B
YAML

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