ansible/roles/sshd/tasks/main.yml

21 lines
431 B
YAML
Raw Normal View History

2022-08-30 12:31:20 +02:00
- name: set rilla's authorized key
authorized_key:
user: rilla
key: '{{ item }}'
path: /home/rilla/.ssh/authorized_keys
with_file:
- public_keys/yubikey
register: ssh_keys
- name: set sshd config
template:
src: sshd_config.j2
dest: /etc/ssh/sshd_config
mode: '0644'
owner: root
group: wheel
- name: setup alpine ssh
include_tasks: alpine.yml
when: ansible_distribution == "Alpine"