I thought it less likely to occur, so I didn’t mention it: The same error could occur if your group_vars/development/vault.yml has an empty env value in vault_wordpress_sites. Could you check that?
the full error msg is below if that helps narrow things down:
TASK [wordpress-setup : Create databases for sites] ****************************
System info:
Ansible 2.4.3.0; Vagrant 2.0.2; Darwin
Trellis at "Add MariaDB 10.2 PPA"
---------------------------------------------------
fatal: [default]: FAILED! => {"msg": "The conditional check 'site_uses_local_db and item.value.db_create | default(true)' failed. The error was: {{ site_env.db_host == 'localhost' }}: {{ wordpress_env_defaults | combine(item.value.env | default({}), vault_wordpress_sites[item.key].env) }}: |combine expects dictionaries, got None\n\nThe error appears to have been in '/Users/username/workspace/xsite-wp/trellis/roles/wordpress-setup/tasks/database.yml': line 3, column 5, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n- block:\n - name: Create databases for sites\n ^ here\n"}
As far as I can tell, the relevant combine is for the site_env var. We’ve confirmed proper format for 2 of the 3 dictionaries being combined.
The one dictionary format we still haven’t confirmed is wordpress_env_defaults. Could you confirm that yours looks like the default in terms of indentation and content?