1
2
3
4
5
6
7
8
9
---
- name: "Create file: /etc/ssh/sshd_config"
template:
src: sshd_config.j2
dest: /etc/ssh/sshd_config
mode: 0755
validate: "/usr/sbin/sshd -T -f %s"
notify: "Restart openssh"
My personal ansible roles and playbooks [deprecated in favor of nixos]
1
2
3
4
5
6
7
8
9
---
- name: "Create file: /etc/ssh/sshd_config"
template:
src: sshd_config.j2
dest: /etc/ssh/sshd_config
mode: 0755
validate: "/usr/sbin/sshd -T -f %s"
notify: "Restart openssh"