Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
uib-ub
Drift
roller-ansible
centos7-system
Commits
32ccd0b7
Commit
32ccd0b7
authored
May 14, 2020
by
Oyvind.Gjesdal
Browse files
add option to turn off needs restarting and reboot (for ita managed instances)
parent
3ff6a16e
Changes
2
Hide whitespace changes
Inline
Side-by-side
defaults/main.yml
View file @
32ccd0b7
...
...
@@ -11,6 +11,7 @@ cron_email: false
cron_users
:
-
root
-
"
{{
worker_name
}}"
cron_yum_update_needs_restarting
:
true
cron_mailto
:
-
"
oyvind.gjesdal@uib.no"
ssh_public_keys
:
[]
...
...
tasks/main.yml
View file @
32ccd0b7
...
...
@@ -17,6 +17,7 @@
user
:
"
root"
job
:
'
/usr/bin/sh
-c
"yum
update
-y
&&
/usr/bin/needs-restarting
-r
now
||
/usr/sbin/shutdown
-r"
>
/dev/null'
become
:
true
when
:
"
cron_yum_update_needs_restarting
|
default(true)
|
bool"
-
name
:
Set authorized key from url
authorized_key
:
...
...
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