Error deploying to staging

Hi Fellas, bit new to trellis, so bear with me! Trying to deploy a site to staging environment, and keep getting the following error. What do you think I"m missing?

TASK [deploy : Copy project templates] ***************************************** [DEPRECATION WARNING]: Using bare variables is deprecated. Update your playbooks so that the environment value uses the full variable syntax ('{{project_templates}}'). This feature will be removed in a future release. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. failed: [178.62.45.59] => (item={u'dest': u'.env', u'src': u'roles/deploy/templates/env.j2', u'name': u'.env config'}) => {"failed": true, "item": {"dest": ".env", "name": ".env config", "src": "roles/deploy/templates/env.j2"}, "msg": "AnsibleUndefinedVariable: 'dict object' has no attribute u'avdyouth.co.uk'"}

Your wordpress_sites must not be configured properly with one named avdyouth.co.uk. You need to make sure that site name exists in both wordpress_sites.yml and the vault.yml file as well.

See https://roots.io/trellis/docs/wordpress-sites/ for more details.

1 Like