basessh: fix up check for libselinux python OS version chceks
This commit is contained in:
parent
ae937373f6
commit
c0e2e1dbe9
1 changed files with 2 additions and 12 deletions
|
@ -33,7 +33,7 @@
|
|||
- config
|
||||
- sshd
|
||||
- selinux
|
||||
when: ( ansible_distribution_major_version|int < 30 and ansible_distribution == 'Fedora') or ( ansible_distribution == 'RedHat' and ansible_distribution_major_version|int < 8 )
|
||||
when: ( ansible_distribution == 'Fedora' and ansible_distribution_major_version|int < 30 ) or ( ansible_distribution == 'RedHat' and ansible_distribution_major_version|int < 8 )
|
||||
|
||||
- name: make sure python3-libselinux is installed
|
||||
package: name=python3-libselinux state=present
|
||||
|
@ -43,17 +43,7 @@
|
|||
- config
|
||||
- sshd
|
||||
- selinux
|
||||
when: ansible_distribution_major_version|int >= 30 and ansible_distribution == 'Fedora' or ( ansible_distribution == 'RedHat' and ansible_distribution_major_version|int >= 8 )
|
||||
|
||||
- name: make sure python3-libselinux is installed
|
||||
package: name=python3-libselinux state=present
|
||||
tags:
|
||||
- basessh
|
||||
- sshd_config
|
||||
- config
|
||||
- sshd
|
||||
- selinux
|
||||
when: ansible_distribution_major_version|int >= 8 and ansible_distribution == 'RedHat'
|
||||
when: ( ansible_distribution == 'Fedora' and ansible_distribution_major_version|int >= 30 ) or ( ansible_distribution == 'RedHat' and ansible_distribution_major_version|int >= 8 )
|
||||
|
||||
- name: check if sshd port is already known by selinux
|
||||
shell: semanage port -l | grep ssh
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue