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:
parent
5e43af4df7
commit
76789fc3be
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
|
when: ansible_distribution_major_version|int != 8 or ansible_distribution_major_version|int != 30
|
||||||
|
|
||||||
- name: make sure libselinux-python is installed
|
- name: make sure libselinux-python is installed
|
||||||
package: name=python3-libselinux state=present
|
package: name=python3-libselinux state=present
|
||||||
|
@ -43,7 +43,7 @@
|
||||||
- config
|
- config
|
||||||
- sshd
|
- sshd
|
||||||
- selinux
|
- 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
|
- 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