enable/disable lbu with a variable

main
Ricard Illa 2022-08-30 17:39:14 +02:00
parent 248e163fd1
commit e1c577cc95
4 changed files with 6 additions and 2 deletions

View File

@ -10,6 +10,7 @@
users:
- rilla
- ansible
use_lbu: true
post_tasks:
- name: lbu commit
lbu:
@ -21,3 +22,5 @@
become_method: doas
roles:
- basic
vars:
use_lbu: false

View File

@ -39,3 +39,4 @@
exclude:
- /var/lib/ansible/.ansible
- /var/lib/ansible/.ash_history
when: ansible_distribution == "Alpine" and use_lbu

View File

@ -36,4 +36,4 @@
- /home/rilla/.ssh/authorized_keys
exclude:
- /home/rilla/.ash_history
when: ansible_distribution == "Alpine"
when: ansible_distribution == "Alpine" and use_lbu

View File

@ -37,4 +37,4 @@
- /var/lib/woodpecker/.ssh/authorized_keys
exclude:
- /var/lib/woodpecker/.ash_history
when: ansible_distribution == "Alpine"
when: ansible_distribution == "Alpine" and use_lbu