Files
no-secrets-athq-ansible/roles/sshd-config/tasks/main.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