dotfiles/roles/yubikey_authorized_keys/tasks/main.yml

17 lines
400 B
YAML
Raw Normal View History

---
- 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 }}"