homeserver/roles/mgrote.ssh/tasks/pve.yml
mg e1c3bebcd9 rolle: ssh neu erstellt (#227)
Co-authored-by: Michael Grote <michael.grote@posteo.de>
Reviewed-on: mg/ansible#227
Co-authored-by: mg <michael.grote@posteo.de>
Co-committed-by: mg <michael.grote@posteo.de>
2021-10-22 13:34:08 +02:00

15 lines
331 B
YAML

---
- name: source proxmox vars
include_vars: pve.yml
- name: template sshd_config
become: true
ansible.builtin.template:
src: pve.j2
dest: /etc/ssh/sshd_config
owner: root
group: root
mode: '0644'
validate: "/usr/sbin/sshd -T -f %s"
backup: true
notify: restart sshd