mirror of
https://github.com/FAUSheppy/no-secrets-athq-ansible
synced 2025-12-06 07:51:35 +01:00
15 lines
278 B
YAML
15 lines
278 B
YAML
- name: SSH Listen Port 7000
|
|
lineinfile:
|
|
path: /etc/ssh/sshd_config
|
|
line: 'Port 7000'
|
|
notify:
|
|
- reload sshd
|
|
|
|
- name: SSH Listen Port 22 (safety)
|
|
lineinfile:
|
|
path: /etc/ssh/sshd_config
|
|
regexp: '^#Port 22'
|
|
line: 'Port 22'
|
|
notify:
|
|
- reload sshd
|