dotfiles/playbooks/roles/ssh/tasks/main.yml
Matej Focko 45e78f4a0c
Fix permissions on ssh_config
Signed-off-by: Matej Focko <me@mfocko.xyz>
2020-10-11 20:43:06 +02:00

18 lines
No EOL
314 B
YAML

---
- name: Generate SSH key
user:
name: mfocko
generate_ssh_key: yes
ssh_key_type: ed25519
ssh_key_comment: "$HOSTNAME"
- name: Install SSH config
template:
src: templates/ssh_config.j2
dest: ~/.ssh/config
mode: 0600
- name: Enable sshd
systemd:
name: sshd
enabled: yes