enable/disable lbu with a variable
parent
248e163fd1
commit
e1c577cc95
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue