---
drop_local_modifications: |
  boolean -D -N
  login -D -N
  port -D -N
  fcontext -D -N

# ansible_facts required by the role
__selinux_required_facts:
  - distribution
  - distribution_major_version
  - os_family
  - python_version

# the subsets of ansible_facts that need to be gathered in case any of the
# facts in required_facts is missing; see the documentation of
# the 'gather_subset' parameter of the 'setup' module
__selinux_required_facts_subsets: "{{ ['!all', '!min'] +
  __selinux_required_facts }}"

restorecon_threads: "{{ '-T 0' if ansible_distribution == 'Fedora' or
  ansible_distribution == 'SL-Micro' or
  (ansible_distribution_major_version | int > 8 and
  ansible_distribution in ['CentOS', 'RedHat', 'Rocky']) else '' }}"

# BEGIN - DO NOT EDIT THIS BLOCK - rh distros variables
# Ansible distribution identifiers that the role treats like RHEL
__selinux_rh_distros:
  - AlmaLinux
  - CentOS
  - RedHat
  - Rocky

# Same as above but includes Fedora
__selinux_rh_distros_fedora: "{{ __selinux_rh_distros + ['Fedora'] }}"

# Use this in conditionals to check if distro is Red Hat or clone
__selinux_is_rh_distro: "{{ ansible_distribution in __selinux_rh_distros }}"

# Use this in conditionals to check if distro is Red Hat or clone, or Fedora
__selinux_is_rh_distro_fedora: "{{ ansible_distribution in __selinux_rh_distros_fedora }}"
# END - DO NOT EDIT THIS BLOCK - rh distros variables
