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 become_method: doas
roles: roles:
- basic - basic
post_tasks:
- name: lbu commit
lbu:
commit: true

View File

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