Hi there, the team has been trying to wrap our heads around this new workflow with deployment using bedrock-ansible and we are hitting a few snags, but we have been able to resolve most of the issues up until now.
We have Bedrock completely setup locally and we are now ready to deploy to our DigitalOcean droplet. But when we attempt to run the following: ./deploy.sh staging example.com we receive the following error:
PLAY [Deploy WP site] *********************************************************
GATHERING FACTS ***************************************************************
fatal: [example.example.co] => SSH Error: Permission denied (publickey,password).
while connecting to 45.55.***.***:22
It is sometimes useful to re-run the command using -vvvv, which prints SSH debug output to help diagnose the issue.
TASK: [deploy | Initialize] ***************************************************
FATAL: no hosts matched or all hosts have already failed -- aborting
PLAY RECAP ********************************************************************
to retry, use: --limit @/Users/myname/deploy.retry
example.example.co : ok=0 changed=0 unreachable=1 failed=0
I get the same error when trying the manual ansible-playbook command.
Here’s the group_vars/staging file:
mysql_root_password: stagingpw
wordpress_sites:
example.com:
site_hosts:
- example.example.co
local_path: '../example.com' # path targeting local Bedrock project directory (relative to Ansible root)
repo: git@bitbucket.org:myuser/bedrock.git
multisite:
enabled: false
subdomains: false
ssl:
enabled: false
system_cron: true
env:
wp_home: http://example.example.co
wp_siteurl: http://example.example.co/wp
wp_env: staging
db_name: example_staging
db_user: example_dbuser
db_password: example_dbpassword
auth_key: "generateme"
auth_salt: "generateme"
logged_in_key: "generateme"
logged_in_salt: "generateme"
nonce_key: "generateme"
nonce_salt: "generateme"
secure_auth_key: "generateme"
secure_auth_salt: "generateme"
And my hosts/staging file:
[web]
example.example.co
[staging:children]
web
Currently DigitalOcean is setup as Ubuntu LEMP on 14.04. I can ssh into root@example.co with no problem.
The local dev seems to be loading the Sage theme and environment just fine. Just have no idea how this whole deployment process is supposed to go.
Any help would be greatly appreciated.