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

12 lines
268 B
YAML
Raw Normal View History

2023-10-28 23:00:05 +00:00
# vim: ft=yaml.ansible
2023-10-29 19:46:52 +00:00
# code: language=ansible
2023-10-28 23:00:05 +00:00
---
2023-11-07 21:15:20 +00:00
- 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
2023-10-28 23:00:05 +00:00
notify: Restart sshd