mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-04-27 03:52:09 +08:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user