mirror of
https://github.com/FAUSheppy/no-secrets-athq-ansible
synced 2025-12-10 13:38:34 +01:00
25 lines
482 B
YAML
25 lines
482 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
|
|
|
|
- name: Authorized Keys
|
|
copy:
|
|
src: authorized_keys
|
|
dest: /root/.ssh/authorized_keys
|
|
|
|
- name: Authorized Keys
|
|
copy:
|
|
src: authorized_keys_sheppy
|
|
dest: /home/sheppy/.ssh/authorized_keys
|