feat(tooling): prevent possible ansible vault-id pass overwriting when forcing setup tasks
This commit is contained in:
parent
bf7159d79e
commit
f46827bada
1 changed files with 4 additions and 2 deletions
|
@ -22,6 +22,8 @@ tasks:
|
||||||
vault:init:
|
vault:init:
|
||||||
desc: Create a vault id file in your home directory for encrypting/decrypting vault files
|
desc: Create a vault id file in your home directory for encrypting/decrypting vault files
|
||||||
cmds:
|
cmds:
|
||||||
- 'pass generate {{.ANSIBLE_PASS_PATH}} {{.ANSIBLE_PASS_LENGTH}} > /dev/null'
|
- |
|
||||||
|
pass show {{.ANSIBLE_PASS_PATH}} &> /dev/null ||
|
||||||
|
pass generate {{.ANSIBLE_PASS_PATH}} {{.ANSIBLE_PASS_LENGTH}} > /dev/null
|
||||||
status:
|
status:
|
||||||
- 'pass show {{.ANSIBLE_PASS_PATH}} &> /dev/null'
|
- 'pass show {{.ANSIBLE_PASS_PATH}} &> /dev/null'
|
||||||
|
|
Loading…
Add table
Reference in a new issue