Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
system.freebsd
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Simple Deploy- and Management
system.freebsd
Commits
8e77577d
Commit
8e77577d
authored
Jul 08, 2019
by
Pietsch, Martin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added reboot task from system role
parent
f526e034
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
tasks/upgrade.yml
tasks/upgrade.yml
+11
-11
No files found.
tasks/upgrade.yml
View file @
8e77577d
---
-
name
:
initialise variable that controls the reboot of the host
set_fact
:
do
reboot
:
False
_freebsd_
reboot
:
False
-
block
:
-
name
:
get hostname of migrationhost
...
...
@@ -33,7 +33,7 @@
-
name
:
set variable that controls the reboot of the host
set_fact
:
do
reboot
:
"
{{
system_upgrade_states[migrationhost].host.state
}}"
_freebsd_
reboot
:
"
{{
system_upgrade_states[migrationhost].host.state
}}"
when
:
system_upgrade_states is defined
-
block
:
...
...
@@ -55,16 +55,16 @@
-
name
:
set variable that controls the reboot of the host
set_fact
:
do
reboot
:
"
{{
system_upgrade_states[inventory_hostname].host.state
}}"
_freebsd_
reboot
:
"
{{
system_upgrade_states[inventory_hostname].host.state
}}"
when
:
system_upgrade_states is not defined
-
name
:
restart {{ inventory_hostname }}
command
:
"
shutdown
-r
-t
+10s"
async
:
0
poll
:
0
ignore_errors
:
yes
when
:
doreboot == True
-
wait_for_connection
:
-
name
:
debug _freebsd_reboot
debug
:
var
:
_freebsd_reboot
-
include_role
:
name
:
system
tasks_from
:
reboot
when
:
_freebsd_reboot == True
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