basessh: Fedora 30 also has no python3 version of libselinux, add conditionals.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
Kevin Fenzi 2019-03-28 16:10:09 +00:00
parent 5e43af4df7
commit 76789fc3be

View file

@ -33,7 +33,7 @@
- config
- sshd
- selinux
when: ansible_distribution_major_version|int != 8
when: ansible_distribution_major_version|int != 8 or ansible_distribution_major_version|int != 30
- name: make sure libselinux-python is installed
package: name=python3-libselinux state=present
@ -43,7 +43,7 @@
- config
- sshd
- selinux
when: ansible_distribution_major_version|int == 8
when: ansible_distribution_major_version|int == 8 or ansible_distribution_major_version|int == 30
- name: check if sshd port is already known by selinux
shell: semanage port -l | grep ssh