first commit
This commit is contained in:
19
files/ansible-playbooks/system-stop-system-start.yml
Normal file
19
files/ansible-playbooks/system-stop-system-start.yml
Normal file
@@ -0,0 +1,19 @@
|
||||
---
|
||||
- name: Simple script restart all processes
|
||||
hosts: all
|
||||
gather_facts: no
|
||||
|
||||
tasks:
|
||||
- name: execute and grab output
|
||||
ansible.builtin.raw: |
|
||||
set -e
|
||||
PATH=/sbin:/usr/sbin:/bin:/usr/bin:$PATH
|
||||
system-stop ; sleep 1; system-start
|
||||
register: ssss_out
|
||||
changed_when: true
|
||||
|
||||
- name: show the output
|
||||
ansible.builtin.debug:
|
||||
msg: "{{ ssss_out.stdout | trim }}"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user