16 lines
400 B
YAML
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 }}"
|