added ssh_conf. set HashKnownHosts to no to make known_hosts human readable and reviewable.

Also set GSSAPIAuthentication to no because it is not required.
This commit is contained in:
pizzaniels 2023-01-15 14:31:34 +01:00
parent 3624175189
commit bfaa81f522
2 changed files with 59 additions and 0 deletions

View file

@ -3,6 +3,11 @@
src: "{{ role_path }}/files/sshd_config"
dest: /etc/ssh/sshd_config
register: sshd_config
- name: Copy ssh config
copy:
src: "{{ role_path }}/files/ssh_config"
dest: /etc/ssh/ssh_config
register: ssh_config
- name: Restart SSH service
systemd:
enabled: true