Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
HPCasCode
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hpc-team
HPCasCode
Commits
2f0461f2
Commit
2f0461f2
authored
8 years ago
by
Chris Hines
Browse files
Options
Downloads
Patches
Plain Diff
only install kernel-devel on centos, only reboot on kernel change on centos
parent
d2468382
No related branches found
No related tags found
1 merge request
!105
only install kernel-devel on centos, only reboot on kernel change on centos
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
roles/upgrade/tasks/main.yml
+4
-1
4 additions, 1 deletion
roles/upgrade/tasks/main.yml
with
4 additions
and
1 deletion
roles/upgrade/tasks/main.yml
+
4
−
1
View file @
2f0461f2
...
...
@@ -21,10 +21,12 @@
yum
:
name=kernel-devel state=latest
become
:
true
become_user
:
root
when
:
ansible_os_family=="RedHat"
-
name
:
get kernel-devel version
shell
:
rpm -q kernel-devel | cut -f 3,4 -d "-"
register
:
rpm_q_output
when
:
ansible_os_family=="RedHat"
-
name
:
get kernel version
shell
:
uname -r
...
...
@@ -43,7 +45,8 @@
-
name
:
set reboot when kernel has changed
set_fact
:
reboot_now
:
true
when
:
not uname_r_output.stdout in rpm_q_output.stdout
when
:
not uname_r_output.stdout in rpm_q_output.stdout and ansible_os_family=="RedHat"
-
name
:
debug3
debug
:
var=reboot_now
...
...
This diff is collapsed.
Click to expand it.
Chris Hines
@chines
mentioned in commit
f39c6c3a
·
4 years ago
mentioned in commit
f39c6c3a
mentioned in commit f39c6c3a83158d280250a9f3f6ee7c146c3c117b
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment