Skip to content

Commit

Permalink
fix: make role work again on Suse - not officially supported
Browse files Browse the repository at this point in the history
Note that Suse is unofficially supported.  The recent change for
the python3 library names made the role break on Suse.

Signed-off-by: Rich Megginson <rmeggins@redhat.com>
  • Loading branch information
richm committed Sep 27, 2023
1 parent ae8cd52 commit 8a9eb20
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion tasks/set_facts_packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,19 @@
- python3-libselinux
- python3-policycoreutils
state: present
when: ansible_python_version is version('3', '>=')
when:
- ansible_python_version is version('3', '>=')
- ansible_os_family == "RedHat"

- name: Install SELinux python3 tools
package:
name:
- python3-selinux
- python3-policycoreutils
state: present
when:
- ansible_python_version is version('3', '>=')
- ansible_os_family == "Suse"

- name: Refresh facts
setup:
Expand Down

0 comments on commit 8a9eb20

Please sign in to comment.