You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
357 B
18 lines
357 B
10 years ago
|
---
|
||
|
- name: restart sshd
|
||
|
sudo: true
|
||
|
service: name=ssh state=restarted
|
||
|
|
||
|
- name: restart server
|
||
|
sudo: true
|
||
|
command: shutdown -r now
|
||
|
async: 0
|
||
|
poll: 0
|
||
|
ignore_errors: true
|
||
|
notify: wait for server restart
|
||
|
|
||
|
- name: wait for server restart
|
||
|
local_action: wait_for host={{ inventory_hostname }} port=22
|
||
|
state=started
|
||
|
sudo: false
|