Add first version of playbooks and configs

Signed-off-by: Matej Focko <matej.focko@outlook.com>
This commit is contained in:
Matej Focko 2020-10-11 15:09:15 +02:00
parent cf3839f82f
commit de292d018f
No known key found for this signature in database
GPG key ID: 707F7C6CBA7A2271
22 changed files with 527 additions and 0 deletions
playbooks/roles/ssh/tasks

View file

@ -0,0 +1,17 @@
---
- 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