blob: 46eb0e1c507547b80062508ea362c7307df87d75 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
- name: Configure sshd
become: true
ansible.builtin.template:
src: sshd_config.j2
dest: /etc/ssh/sshd_config
owner: root
group: root
mode: '644'
validate: /usr/sbin/sshd -t -f %s
notify: sshd_restart
- name: Restart sshd service if necessary
ansible.builtin.meta: flush_handlers
|