16 lines
351 B
YAML
16 lines
351 B
YAML
---
|
|
|
|
- name: Configure ssh-server daemon
|
|
remote_user: root
|
|
copy:
|
|
src: ../files/hardened_sshd.conf
|
|
dest: /etc/ssh/sshd_config.d/hardened_sshd.conf
|
|
mode: u=rw,g=r,o=r
|
|
notify: restart sshd
|
|
|
|
|
|
- name: Configure ssh client
|
|
copy:
|
|
src: ../files/hardened_ssh.conf
|
|
dest: /etc/ssh/ssh_config.d/hardened_ssh.conf
|
|
mode: u=rw,g=r,o=r |