Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - name: Check if service x is running
- systemd:
- name: x
- status: started
- register: service_x_running
- - name: Run multipath command when service is not running
- command: multipath -r
- when: service_x_running is not changed
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement