lab-ansible/roles/vm-common/tasks/ssh.yml
2023-11-12 16:03:21 +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