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: users:
- rilla - rilla
- ansible - ansible
use_lbu: true
post_tasks: post_tasks:
- name: lbu commit - name: lbu commit
lbu: lbu:
@ -21,3 +22,5 @@
become_method: doas become_method: doas
roles: roles:
- basic - basic
vars:
use_lbu: false

View File

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

View File

@ -36,4 +36,4 @@
- /home/rilla/.ssh/authorized_keys - /home/rilla/.ssh/authorized_keys
exclude: exclude:
- /home/rilla/.ash_history - /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 - /var/lib/woodpecker/.ssh/authorized_keys
exclude: exclude:
- /var/lib/woodpecker/.ash_history - /var/lib/woodpecker/.ash_history
when: ansible_distribution == "Alpine" when: ansible_distribution == "Alpine" and use_lbu