mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-08-23 03:16:55 +00:00
For remove
Avoid accidental uncommenting of Port 22
This commit is contained in:
parent
19b3ae2b1b
commit
094582c079
1 changed files with 1 additions and 1 deletions
|
@ -218,7 +218,7 @@
|
|||
- name: Revert Comment out Port(s) in sshd_config, can cause port conflicts on deploy (AlmaLinux, Debian, Fedora, openSUSE Tumbleweed, Raspbian, Rocky, Ubuntu)
|
||||
ansible.builtin.replace:
|
||||
path: /etc/ssh/sshd_config
|
||||
regexp: "^# (Port [0-9]+)"
|
||||
regexp: '^# (Port (?!22$)[0-9]+)'
|
||||
replace: '\1'
|
||||
when: ansible_distribution in ["AlmaLinux", "Debian", "Fedora", "openSUSE Tumbleweed", "Raspbian", "Rocky", "Ubuntu"]
|
||||
tags:
|
||||
|
|
Loading…
Reference in a new issue