This website works better with JavaScript.
Home
Explore
Help
Register
Sign In
ka
/
ansible-role-reboot
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
current
master
Markus Katharina Brechtel
7 years ago
parent
75dfb344a2
commit
d251cedd11
2 changed files
with
9 additions
and
2 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-0
defaults/main.yml
+7
-2
tasks/main.yml
+ 2
- 0
defaults/main.yml
View File
@@ -0,0 +1,2 @@
reboot_delay: 120
reboot_timeout: 300
+ 7
- 2
tasks/main.yml
View File
@@ -1,10 +1,15 @@
---
- name: reboot
command: shutdown -r
1
command: shutdown -r
30
async: 0
poll: 0
ignore_errors: true
- name: wait for ssh
local_action: wait_for host={{ ansible_host | default(inventory_hostname) }} port=22 search_regex=OpenSSH delay={{ reboot_delay | default(120) }} state=started
local_action: wait_for host={{ ansible_host | default(inventory_hostname) }} port=22 search_regex=OpenSSH delay={{ reboot_delay }} timeout={{ reboot_timeout }} state=started
- name: try to connect to ssh
setup:
retries: 10
delay: 5
Write
Preview
Loading…
Cancel
Save