dotfiles/playbooks/roles/ssh/tasks/main.yml
Matej Focko de292d018f
Add first version of playbooks and configs
Signed-off-by: Matej Focko <matej.focko@outlook.com>
2020-10-11 15:09:15 +02:00

17 lines
No EOL
299 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
- name: Enable sshd
systemd:
name: sshd
enabled: yes