Add first version of playbooks and configs
Signed-off-by: Matej Focko <matej.focko@outlook.com>
This commit is contained in:
parent
cf3839f82f
commit
de292d018f
22 changed files with 527 additions and 0 deletions
playbooks/roles/ssh/tasks
17
playbooks/roles/ssh/tasks/main.yml
Normal file
17
playbooks/roles/ssh/tasks/main.yml
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue