From 2b648dea7fd594dd3ae67e3dfbb323c03ac8c26e Mon Sep 17 00:00:00 2001 From: mkrasilnikov Date: Fri, 1 Sep 2017 19:02:36 +0300 Subject: [PATCH] Generate uuid from time by default for vault roles --- roles/vault/tasks/shared/create_role.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }}"