encrypted lbu

main
Ricard Illa 2022-10-30 17:57:27 +01:00
parent 071a5c6382
commit b127584a25
No known key found for this signature in database
GPG Key ID: F69A672B72E54902
2 changed files with 14 additions and 2 deletions

View File

@ -146,8 +146,12 @@
become: true
post_tasks:
- name: lbu commit
lbu:
commit: true
# I use the shell module instead of the lbu one because the lbu module
# doesn't seem to work with encryption
shell:
cmd: lbu commit
environment:
PASSWORD: '{{ lbu_password }}'
when: ansible_distribution == "Alpine" and alpine_mode in ["diskless", "data"]
- name: mount ro

View File

@ -0,0 +1,8 @@
---
lbu_password: !vault |
$ANSIBLE_VAULT;1.1;AES256
38393166366336363734333231633439656233616534303566353830396537346161656162353635
3735383436396566336430626439653331396434346232650a373830646233303061313139373834
39626462666363613430653932313866363037333166653839383332323035653231303634343830
3933313132393734660a336263323931326466643162343430623339313661393665336261313937
34386134643736623534363538343439656262616436306130363033363735396261