File tree 4 files changed +45
-12
lines changed
4 files changed +45
-12
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ # Copyright (C) SchedMD LLC.
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+
16
+ reboot : true
Original file line number Diff line number Diff line change 12
12
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
13
# See the License for the specific language governing permissions and
14
14
# limitations under the License.
15
+ - block :
16
+ - name : Reboot
17
+ reboot :
15
18
16
- - name : Reboot
17
- reboot :
19
+ - name : Gather facts after reboot
20
+ setup :
18
21
19
- - name : Gather facts after reboot
20
- setup :
22
+ when : reboot
21
23
22
24
- name : Install {{ansible_os_family}} Family Kernel Packages
23
25
apt :
24
26
name :
25
27
- linux-headers-{{ansible_kernel}}
26
28
state : latest
27
29
update_cache : yes
30
+ when : reboot
31
+
32
+ - name : Install {{ansible_os_family}} Family Kernel Packages
33
+ apt :
34
+ name :
35
+ - linux-headers-generic
36
+ state : latest
37
+ update_cache : yes
38
+ when : not reboot
Original file line number Diff line number Diff line change 13
13
# See the License for the specific language governing permissions and
14
14
# limitations under the License.
15
15
16
- - name : Reboot
17
- reboot :
16
+ - block :
17
+ - name : Reboot
18
+ reboot :
18
19
19
- - name : Gather facts after reboot
20
- setup :
20
+ - name : Gather facts after reboot
21
+ setup :
22
+
23
+ when : reboot
21
24
22
25
- name : Install {{ansible_os_family}} Family Kernel Packages
23
26
yum :
Original file line number Diff line number Diff line change 26
26
state : latest
27
27
update_cache : yes
28
28
29
- - name : Reboot
30
- reboot :
29
+ - block :
30
+ - name : Reboot
31
+ reboot :
31
32
32
- - name : Gather facts after reboot
33
- setup :
33
+ - name : Gather facts after reboot
34
+ setup :
35
+
36
+ when : reboot
You can’t perform that action at this time.
0 commit comments