basessh: Fix libselinux-python installation on Fedora >= 31
This commit is contained in:
parent
6680b25ef8
commit
3cedc1366b
1 changed files with 2 additions and 2 deletions
|
@ -33,7 +33,7 @@
|
||||||
- config
|
- config
|
||||||
- sshd
|
- sshd
|
||||||
- selinux
|
- selinux
|
||||||
when: ansible_distribution_major_version|int != 8 and ansible_distribution_major_version|int != 30
|
when: ansible_distribution_major_version|int < 30 and ansible_distribution_major_version|int != 8
|
||||||
|
|
||||||
- name: make sure libselinux-python is installed
|
- name: make sure libselinux-python is installed
|
||||||
dnf: name=python3-libselinux state=present
|
dnf: name=python3-libselinux state=present
|
||||||
|
@ -43,7 +43,7 @@
|
||||||
- config
|
- config
|
||||||
- sshd
|
- sshd
|
||||||
- selinux
|
- selinux
|
||||||
when: ansible_distribution_major_version|int == 8 or ansible_distribution_major_version|int == 30
|
when: ansible_distribution_major_version|int >= 30 or ansible_distribution_major_version|int == 8
|
||||||
|
|
||||||
- name: check if sshd port is already known by selinux
|
- name: check if sshd port is already known by selinux
|
||||||
shell: semanage port -l | grep ssh
|
shell: semanage port -l | grep ssh
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue