Test variables before use to make check mode work
This commit is contained in:
@@ -74,6 +74,7 @@
|
||||
- name: 'Remove cgroups v1 if enabled'
|
||||
when:
|
||||
- results is defined
|
||||
- results.stdout is defined
|
||||
- ' "systemd.unified_cgroup_hierarchy=0" in results.stdout '
|
||||
shell:
|
||||
cmd: |
|
||||
@@ -81,6 +82,7 @@
|
||||
- name: 'Reboot to disable cgroups v1'
|
||||
when:
|
||||
- results is defined
|
||||
- results.stdout is defined
|
||||
- ' "systemd.unified_cgroup_hierarchy=0" in results.stdout '
|
||||
reboot:
|
||||
- name: 'flush handlers'
|
||||
|
Reference in New Issue
Block a user