This repository has been archived on 2021-04-04. You can view files and clone it, but cannot push or open issues or pull requests.
ansible-server/roles/initramfs/tasks/dropbear.yml

19 lines
722 B
YAML
Raw Normal View History

2019-03-31 15:25:33 +02:00
---
- name: install dropbear
apt:
name: dropbear
state: present
- name: disable dropbear systemd service
systemd:
name: dropbear
enabled: false
state: stopped
- name: add ssh key to authorized keys
copy:
dest: /etc/dropbear-initramfs/authorized_keys
content: |
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCs0igb6TTxPkKEQ96pk/NEqqWvQH/miJEBAEe1bzHlo5n5ThnGYvVPadfHIwq1ix0IdAfyWoG8duaKVDJAUAFBtegRO7vRBYBYR04V8DE8n66MgDbbLDuu7Kbm4JWMUNg43KwJDzZtSvEKjyh5/u/TT59D1F+toxMfet++jNG03mFa6ANhMTjghbkFHj3eyuiXA/SxZLorhkCFW6Tri3u5FFLGpjaom1dZ5PAcic0+ZOECpgEwTj8FpOzmldjsu8gFxdPYGrqfA1dOxL3OQ6/rB0LfHjwrN9i3DrZzG+RfJxZbgO4/RLQz2sHYM6S6d1MtCcXThozCXSbmpdNdwdPp simon@kipf
notify: update-initramfs