fix: add task to set seport accordingly
This commit is contained in:
parent
723be05d79
commit
019ce6ca7c
@ -41,3 +41,13 @@
|
||||
group: root
|
||||
mode: "0640"
|
||||
when: ('crypto-policies' in ansible_facts.packages)
|
||||
|
||||
- name: Ensure seport matches sshd config
|
||||
seport:
|
||||
ports: "{{ sshd_port }}"
|
||||
proto: "tcp"
|
||||
setype: "ssh_port_t"
|
||||
state: "present"
|
||||
when:
|
||||
- ansible_selinux is defined
|
||||
- ansible_selinux.status == "enabled"
|
||||
|
Loading…
Reference in New Issue
Block a user