While running provision script to provision a newly created droplet, I ran into this error. Googling didn’t help me much. Could anyone point out what the cause is and how I can further debug this? Thank you.
TASK [letsencrypt : Create needed Nginx confs for challenges] ******************
System info:
Ansible 2.2.1.0; Darwin
Trellis at "Add `bin/xdebug-tunnel.sh` to manage Xdebug and SSH tunnels on remote hosts"
---------------------------------------------------
AnsibleError: Unexpected templating type error occurred on (server {
listen 80;
server_name{% for item in item.item.value.site_hosts %} {{ item.canonical
}}{% for redirect in item.redirects | default([]) %} {{ redirect }}{% endfor
%}{% endfor %};
include acme-challenge-location.conf;
}
): 'NoneType' object is not iterable
failed: [138.197.105.183] (item=oshp.conceptual.site) => {"failed": true, "item": "oshp.conceptual.site"}
to retry, use: --limit @/Users/conceptualcode/Workspace/onestarhouseparty.com/trellis/server.retry
PLAY RECAP *********************************************************************
138.197.105.183 : ok=83 changed=4 unreachable=0 failed=1
localhost : ok=0 changed=0 unreachable=0 failed=0