Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
fork
G
github
lae
Ansible Role Proxmox
Commits
b7c41ecd
Unverified
Commit
b7c41ecd
authored
7 years ago
by
Musee Ullah
Browse files
Options
Download
Email Patches
Plain Diff
Use wait_for_connection for reboot and reboot more quickly
parent
ecc19a90
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
7 deletions
+5
-7
tasks/kernel_updates.yml
tasks/kernel_updates.yml
+5
-7
No files found.
tasks/kernel_updates.yml
View file @
b7c41ecd
...
...
@@ -6,16 +6,14 @@
when
:
pve_reboot_on_kernel_update
-
block
:
-
name
:
Reboot for
kernel update
command
:
"
shutdown
-r
+1
'PVE
kernel
update
detected
by
Ansible
,
rebooting
'"
async
:
0
-
name
:
Reboot for
networking changes
shell
:
"
sleep
5
&&
shutdown
-r
now
'PVE
kernel
update
detected
by
Ansible'"
async
:
1
poll
:
0
ignore_errors
:
true
-
name
:
Wait for server to come back online
local_action
:
wait_for port=22 host={{ inventory_hostname }} search_regex=OpenSSH delay=60 timeout=450
become
:
false
wait_for_connection
:
delay
:
15
when
:
-
pve_reboot_on_kernel_update
-
__pve_kernel_update.new_kernel_exists
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment