Debian Codegraph @

ansible_collections/community/general/tests/integration/targets/sefcontext/tasks/main.yml

raw
1 ---
2 ####################################################################
3 # WARNING: These are designed specifically for Ansible tests #
4 # and should not be used as examples of how to write Ansible roles #
5 ####################################################################
6
7 # Copyright (c) 2016, Dag Wieers <[email protected]>
8 # GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
9 # SPDX-License-Identifier: GPL-3.0-or-later
10
11 # FIXME: Unfortunately ansible_facts.selinux could be a boolean or a dictionary !
12 - debug:
13 msg: SELinux is disabled
14 when: ansible_facts.selinux is defined and ansible_facts.selinux == False
15
16 - debug:
17 msg: SELinux is {{ ansible_facts.selinux.status }}
18 when: ansible_facts.selinux is defined and ansible_facts.selinux != False
19
20 - include_tasks: sefcontext.yml
21 when: ansible_facts.selinux is defined and ansible_facts.selinux != False and ansible_facts.selinux.status == 'enabled'