ansible/roles/sshd/tasks/alpine.yml

22 lines
413 B
YAML
Raw Normal View History

2022-08-30 14:18:17 +02:00
- name: commit rilla's authorized ssh keys
2022-08-30 12:31:20 +02:00
lbu:
include:
- /home/rilla/.ssh/authorized_keys
2022-08-30 14:18:17 +02:00
when: rilla_keys.changed
- name: commit ansible's authorized ssh keys
lbu:
include:
- /var/lib/ansible/.ssh/authorized_keys
when: ansible_keys.changed
2022-08-30 12:31:20 +02:00
- name: install openssh
apk:
name: openssh
- name: enable sshd service
service:
name: sshd
enabled: yes
state: started