--- # configure sshd - name: "config - sshd" ansible.builtin.template: src: "templates/sshd/sshd_config.j2" dest: "/etc/ssh/sshd_config" owner: "root" group: "root" mode: "0644" notify: "restart ssh" when: 'ansible_facts["os_family"] == "Debian"' # configure sshd - name: "config - sshd" ansible.builtin.template: src: "templates/sshd/sshd_config.j2" dest: "/etc/ssh/sshd_config" owner: "root" group: "root" mode: "0644" notify: "restart ssh alpine" when: 'ansible_facts["os_family"] == "Alpine"'