Check for empty string with api token
This is a secret and should be encrypted. Ansible Vault vars do not support `| length`.pull/38/head
parent
a9d5f3ac96
commit
a38cc21da6
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue