lab-ansible/roles/vm-common/tasks/ssh.yml

12 lines
261 B
YAML

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