lab-ansible/roles/common/tasks/ssh.yml
2023-11-07 22:15:20 +01:00

12 lines
268 B
YAML

# vim: ft=yaml.ansible
# code: language=ansible
---
- name: Copy sshd_config
ansible.builtin.template:
src: etc/ssh/sshd_config.j2
dest: /etc/ssh/sshd_config
owner: root
mode: u=rw,g=r,o=r
validate: /usr/sbin/sshd -t -f %s
notify: Restart sshd