Deploy Clone Project Files dictionary error

@jwkicklighter The dict object (“dictionary”) in the error message is wordpress_sites and the attribute it is looking for is the site header in that list. Could you check that salonvoandspa.com is the site name header in your wordpress_sites list? If you have a different header name there, use that name in your deploy command:

./deploy production siteheader

or

ansible-playbook deploy.yml -i hosts/production --extra-vars="site=siteheader"

Also consider this note about ssh keys with bitbucket. Trellis is set up to connect to Bitbucket using your local machine’s ssh key pair instead of the DO droplet’s keypair, so Bitbucket should have your local machine’s public ssh key. The purpose of this “ssh agent forwarding” setup is so that you don’t have to add extra deploy keys to your private repo – Trellis will just forward your regular ssh agent info through your droplet to Bitbucket to make the connection.

I would also recommend changing your web_user back to web or something other than root (then rerun server.yml and deploy.yml). Otherwise you will probably run into the Error: YIKES! It looks like you're running this as root described here. If you run into trouble after changing web_user back, there’s some chance that you’ll need to destroy/rebuild the droplet and rerun with web_user: web. I haven’t tested, but I suspect it’s possible that running everything once with web_user: root could cause permissions/ownership issues that might not resolve with just rerunning with web_user: web.

1 Like