dotfiles/playbooks/roles/ssh/tasks/main.yml
Matej Focko 0736d64ecc
Include distribution in ssh key name
Closes #19

Signed-off-by: Matej Focko <me@mfocko.xyz>
2020-10-17 13:16:23 +02:00

18 lines
351 B
YAML

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