fix: add task to set seport accordingly
Some checks failed
ci/woodpecker/push/lint Pipeline failed
ci/woodpecker/push/test unknown status
ci/woodpecker/push/docs unknown status
ci/woodpecker/push/notify Pipeline was successful

This commit is contained in:
Robert Kaussow 2024-09-16 10:23:43 +02:00
parent 723be05d79
commit 019ce6ca7c
Signed by: xoxys
GPG Key ID: 4E692A2EAECC03C0

View File

@ -41,3 +41,13 @@
group: root group: root
mode: "0640" mode: "0640"
when: ('crypto-policies' in ansible_facts.packages) 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"