wtsi-hgi/hgi-systems

`hostvars[consul_cluster_leader].consul_server_acl_master_token` is undefined

Closed this issue · 1 comments

I'm encountering this error:

TASK [consul-cluster : create a management ACL token] **************************************************************************************************************************************************************************************************************************
fatal: [consul-cluster-delta-hgi]: FAILED! => {"failed": true, "msg": "the field 'args' has an invalid value, which appears to include a variable that is undefined. The error was: {{ hostvars[consul_cluster_leader].consul_server_acl_master_token }}: 'ansible.vars.hostvars.HostVars object' has no attribute ''\n\nThe error appears to have been in '/data/hgi-systems/ansible/roles/consul-cluster/tasks/main.yml': line 58, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: create a management ACL token\n  ^ here\n"}

Due to overzealous limitting.