Been trying to set up a new Vagrant box. First I had a MariaDB issue which I overcame, but now I am suck installing wordpress it seems
TASK: [wordpress-setup | Create WordPress configuration for Nginx] ************
fatal: [default] => {'msg': "AnsibleUndefinedVariable: One or more undefined variables: 'dict object' has no attribute 'site_hosts'", 'failed': True}
fatal: [default] => {'msg': 'One or more items failed.', 'failed': True, 'changed': False, 'results': [{'msg': "AnsibleUndefinedVariable: One or more undefined variables: 'dict object' has no attribute 'site_hosts'", 'failed': True}]}
FATAL: all hosts have already failed -- aborting
PLAY RECAP ********************************************************************
to retry, use: --limit @/Users/jasper/dev.retry
default : ok=64 changed=1 unreachable=1 failed=0
Ansible failed to complete successfully. Any error output should be
visible above. Please fix these errors and try again.
I’m having he same issue → One or more undefined variables: ‘dict object’ has no attribute ‘my-site’ - The first time I ran vagran up I only could see the welcome nginx page, I tried to provision and now I get this:
# Documentation: https://roots.io/trellis/docs/vault/
vault_mysql_root_password: devpw
# Documentation: https://roots.io/trellis/docs/security/
vault_sudoer_passwords:
admin: $6$rounds=100000$JUkj1d3hCa6uFp6R$3rZ8jImyCpTP40e4I5APx7SbBvDCM8fB6GP/IGOrsk/GEUTUhl1i/Q2JNOpj9ashLpkgaCxqMqbFKdZdmAh26/
# Variables to accompany `group_vars/development/wordpress_sites.yml`
# Note: the site name (`example.com`) must match up with the site name in the above file.
vault_wordpress_sites:
growthminds.com:
admin_password: admin
env:
db_password: example_dbpassword