Test variables before use to make check mode work

This commit is contained in:
Jason Rothstein 2021-02-08 22:23:31 -06:00
parent d1902220d6
commit 6c89af9f26

View File

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