Only run grubby if cat runs (fixes check mode)
This commit is contained in:
@@ -74,6 +74,7 @@
|
|||||||
- name: 'Add cgroups v1 if disabled'
|
- name: 'Add cgroups v1 if disabled'
|
||||||
when:
|
when:
|
||||||
- results is defined
|
- results is defined
|
||||||
|
- results.stdout is defined
|
||||||
- ' "systemd.unified_cgroup_hierarchy=0" not in results.stdout '
|
- ' "systemd.unified_cgroup_hierarchy=0" not in results.stdout '
|
||||||
shell:
|
shell:
|
||||||
cmd: |
|
cmd: |
|
||||||
@@ -81,6 +82,7 @@
|
|||||||
- name: 'Reboot to enable cgroups v1'
|
- name: 'Reboot to enable cgroups v1'
|
||||||
when:
|
when:
|
||||||
- results is defined
|
- results is defined
|
||||||
|
- results.stdout is defined
|
||||||
- ' "systemd.unified_cgroup_hierarchy=0" not in results.stdout '
|
- ' "systemd.unified_cgroup_hierarchy=0" not in results.stdout '
|
||||||
reboot:
|
reboot:
|
||||||
- name: 'flush handlers'
|
- name: 'flush handlers'
|
||||||
|
Reference in New Issue
Block a user