mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Update in response to ubuntu issues.
This commit is contained in:
parent
3baf2dc095
commit
0719be852f
1 changed files with 4 additions and 3 deletions
|
@ -98,13 +98,14 @@
|
|||
register: selinux_installed
|
||||
|
||||
- name: determine if selinux is enabled
|
||||
shell: getenforce | grep Disabled
|
||||
shell: getenforce
|
||||
register: selinux_enabled
|
||||
when: selinux_installed.stdout != ""
|
||||
ignore_errors: true
|
||||
|
||||
- include: selinux_tests.yml
|
||||
when: selinux_enabled.stdout != "Disabled"
|
||||
- name: decide to include or not include selinux tests
|
||||
include: selinux_tests.yml
|
||||
when: selinux_installed.stdout != "" and selinux_enabled.stdout != "Disabled"
|
||||
|
||||
- name: remote directory foobar
|
||||
file: path={{output_dir}}/foobar state=absent
|
||||
|
|
Loading…
Reference in a new issue