improvements with lbu handling

main
Ricard Illa 2022-08-30 11:49:17 +02:00
parent 98e608de07
commit 74705d9d20
2 changed files with 6 additions and 4 deletions

View File

@ -4,3 +4,7 @@
become_method: doas
roles:
- basic
post_tasks:
- name: lbu commit
lbu:
commit: true

View File

@ -24,12 +24,10 @@
path: /home/rilla/.ssh/authorized_keys
with_file:
- public_keys/yubikey
register: ssh_keys
- name: commit ssh public keys with lbu
lbu:
include:
- /home/rilla/.ssh/authorized_keys
- name: lbu commit
lbu:
commit: true
when: ansible_distribution == "Alpine" and ssh_keys.changed