feat(role): Set and document defaults to make this ready to use out of the box

This commit is contained in:
2022-07-24 03:00:24 +02:00
parent 8556fad31c
commit f3042dbf7e
2 changed files with 32 additions and 1 deletions

6
defaults/main.yml Normal file
View File

@@ -0,0 +1,6 @@
# role_common_local-os-password
fqdn_reverse: '{{ inventory_hostname | split(".") | reverse | join("/") }}'
local_os_password_vault_vars: ['password', 'password_salt']
local_os_password_vault_base: '{{ fqdn_reverse }}/os/{{ reset_password_for_account }}'
local_os_password_vault_paths: '{{ [local_os_password_vault_base + ''/''] | product(local_os_password_vault_vars) | map(''join'') | list }}'
reset_password_for_account: 'root'