mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 21:32:49 +00:00
Fix include task using a potentially undefined variable
This commit is contained in:
@@ -137,7 +137,7 @@
|
||||
|
||||
- name: decide to include or not include selinux tests
|
||||
include: selinux_tests.yml
|
||||
when: selinux_installed.stdout != "" and selinux_enabled.stdout != "Disabled"
|
||||
when: selinux_installed is defined and selinux_installed.stdout != "" and selinux_enabled.stdout != "Disabled"
|
||||
|
||||
- name: remote directory foobar
|
||||
file: path={{output_dir}}/foobar state=absent
|
||||
|
||||
Reference in New Issue
Block a user