mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Fix selinux in the new tests for the file module.
We had some incorrect logic for when selinux is installed and disabled.
This commit is contained in:
parent
b8ea1cfa69
commit
e12b2aba96
1 changed files with 2 additions and 2 deletions
|
@ -98,13 +98,13 @@
|
|||
register: selinux_installed
|
||||
|
||||
- name: determine if selinux is enabled
|
||||
shell: getenforce | grep -q Disabled || echo yes
|
||||
shell: getenforce | grep Disabled
|
||||
register: selinux_enabled
|
||||
when: selinux_installed.stdout != ""
|
||||
ignore_errors: true
|
||||
|
||||
- include: selinux_tests.yml
|
||||
when: selinux_enabled
|
||||
when: selinux_enabled.stdout != "Disabled"
|
||||
|
||||
- name: remote directory foobar
|
||||
file: path={{output_dir}}/foobar state=absent
|
||||
|
|
Loading…
Reference in a new issue