mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-11-01 13:02:54 +00:00
Compare commits
2 commits
36b2e47d0d
...
094582c079
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
094582c079 | ||
|
|
19b3ae2b1b |
2 changed files with 2 additions and 2 deletions
|
|
@ -481,7 +481,7 @@
|
|||
- name: 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 (?!64295$)[0-9]+)'
|
||||
replace: '# \1'
|
||||
when: ansible_distribution in ["AlmaLinux", "Debian", "Fedora", "openSUSE Tumbleweed", "Raspbian", "Rocky", "Ubuntu"]
|
||||
tags:
|
||||
|
|
|
|||
|
|
@ -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