Skip to content

Commit

Permalink
tandoor: ignore nonetype secret_key
Browse files Browse the repository at this point in the history
  • Loading branch information
saltydk committed Jan 19, 2025
1 parent ab423b8 commit 2077d0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion roles/tandoor/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}"
Expand Down

0 comments on commit 2077d0a

Please sign in to comment.