1
0
IaC/ansible/roles/sshd/tasks/main.yaml

15 lines
289 B
YAML
Raw Normal View History

2024-04-20 09:04:17 -04:00
---
- name: Template out sshd_config
ansible.builtin.template:
src: sshd_config.j2
dest: /etc/ssh/sshd_config
owner: root
group: root
mode: '0644'
notify:
- Restart sshd
- name: Flush handlers for immediate shhd restart
ansible.builtin.meta: flush_handlers