Only run grubby if cat runs (fixes check mode)

This commit is contained in:
Jason Rothstein 2021-02-08 22:14:56 -06:00
parent d57ae74762
commit ca310a26e1

View File

@ -74,6 +74,7 @@
- name: 'Add cgroups v1 if disabled'
when:
- results is defined
- results.stdout is defined
- ' "systemd.unified_cgroup_hierarchy=0" not in results.stdout '
shell:
cmd: |
@ -81,6 +82,7 @@
- name: 'Reboot to enable cgroups v1'
when:
- results is defined
- results.stdout is defined
- ' "systemd.unified_cgroup_hierarchy=0" not in results.stdout '
reboot:
- name: 'flush handlers'