From a38cc21da68b11284927f6c1e493d96f33baccce Mon Sep 17 00:00:00 2001 From: Cornelius Hoffmann Date: Sat, 14 Nov 2020 12:08:27 +0100 Subject: [PATCH] Check for empty string with api token This is a secret and should be encrypted. Ansible Vault vars do not support `| length`. --- tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/main.yml b/tasks/main.yml index 29183f9..b92a22b 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -14,7 +14,7 @@ - import_tasks: authorize_node.yml when: - - zerotier_api_accesstoken | length > 0 + - zerotier_api_accesstoken != '' - ansible_local['zerotier']['node_id'] is defined - import_tasks: join_network.yml