From 2077d0a2cbe849393d12e62df87064195518343a Mon Sep 17 00:00:00 2001 From: saltydk Date: Sun, 19 Jan 2025 21:12:36 +0100 Subject: [PATCH] tandoor: ignore nonetype secret_key --- roles/tandoor/tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/tandoor/tasks/main.yml b/roles/tandoor/tasks/main.yml index 2312c4d230..3ed2e45eba 100644 --- a/roles/tandoor/tasks/main.yml +++ b/roles/tandoor/tasks/main.yml @@ -13,7 +13,7 @@ instance: "tandoor" keys: secret_key: "{{ tandoor.secret_key - if tandoor is defined and tandoor.secret_key is defined and tandoor.secret_key | length > 0 + if tandoor is defined and tandoor.secret_key is defined and tandoor.secret_key is not none and tandoor.secret_key | length > 0 else lookup('ansible.builtin.password', '/dev/null', chars=['ascii_letters', 'digits'], length=50) }}" owner: "{{ user.name }}" group: "{{ user.name }}"