dotfiles/roles/yubikey/authorized-keys/tasks/main.yml
Matej Focko 6a732703f7
chore: move out yubikey roles
Signed-off-by: Matej Focko <me@mfocko.xyz>
2024-07-12 21:15:31 +02:00

16 lines
400 B
YAML

---
- name: Create a Yubico directory
ansible.builtin.file:
path: ~/.yubico
state: directory
mode: 0744
owner: "{{ target_user }}"
group: "{{ target_user }}"
- name: Create authorized Yubikeys
ansible.builtin.template:
src: templates/authorized_yubikeys
dest: ~/.yubico/authorized_yubikeys
mode: 0644
owner: "{{ target_user }}"
group: "{{ target_user }}"