diff --git a/roles/vault/tasks/shared/create_role.yml b/roles/vault/tasks/shared/create_role.yml index fae45207a..78f312f1d 100644 --- a/roles/vault/tasks/shared/create_role.yml +++ b/roles/vault/tasks/shared/create_role.yml @@ -42,7 +42,7 @@ - include: gen_userpass.yml vars: gen_userpass_group: "{{ create_role_group }}" - gen_userpass_password: "{{ create_role_password|d(''|to_uuid) }}" + gen_userpass_password: "{{ create_role_password|d(lookup('pipe','date +%Y%m%d%H%M%S')|to_uuid) }}" gen_userpass_policies: "{{ create_role_name }}" gen_userpass_role: "{{ create_role_name }}" gen_userpass_username: "{{ create_role_name }}"