37 lines
815 B
YAML
37 lines
815 B
YAML
---
|
|
- name: Install dropbear
|
|
apt:
|
|
update_cache: true
|
|
install_recommends: false
|
|
name: dropbear-initramfs
|
|
register: apt_result
|
|
retries: 3
|
|
until: apt_result is succeeded
|
|
|
|
- name: Configure initramfs network
|
|
template:
|
|
src: initramfs-tools/conf.d/10-network.j2
|
|
dest: /etc/initramfs-tools/conf.d/10-network
|
|
owner: root
|
|
group: root
|
|
mode: 0644
|
|
notify: Update initramfs
|
|
|
|
- name: Deploy configuration
|
|
template:
|
|
src: dropbear-initramfs/config.j2
|
|
dest: /etc/dropbear-initramfs/config
|
|
owner: root
|
|
group: root
|
|
mode: 0644
|
|
notify: Update initramfs
|
|
|
|
- name: Deploy authorized keys
|
|
template:
|
|
src: dropbear-initramfs/authorized_keys.j2
|
|
dest: /etc/dropbear-initramfs/authorized_keys
|
|
owner: root
|
|
group: root
|
|
mode: 0644
|
|
notify: Update initramfs
|