I’m totally new to Roots, but I would love to learn how it works. Although I feel myself a bit beginner for it.
I followed the https://github.com/roots/roots-example-project.com, and i managed to install it locally, vagrant up
worked like magic! Now I’m trying to deploy it to dreamhost.com. And there I’m a little confused. I never did something similar, until now, i always copied the files through FTP, and created the DB through a web-interface.
So, i can SSH through Terminal to DreamHost like: ssh koli@test.mydomain.ch
But I don’t really understand where should I set my ssh user-name (koli), and my password? In /group_vars/all
?
I never used SSH-key and publickey.
So, when i try ansible-playbook -i hosts/production server.yml
I get this:
< PLAY [Determine Remote User] >
------------------------------
\ ^__^
\ (oo)\_______
(__)\ )\/\
||----w |
|| ||
_____________________________________________________________
/ TASK: remote-user | Determine whether to connect as root or \
\ admin_user /
-------------------------------------------------------------
\ ^__^
\ (oo)\_______
(__)\ )\/\
||----w |
|| ||
ok: [test.mydomain.com -> 127.0.0.1]
___________________________________________________
< TASK: remote-user | Set remote user for each host >
---------------------------------------------------
\ ^__^
\ (oo)\_______
(__)\ )\/\
||----w |
|| ||
ok: [test.mydomain.com]
__________________________________________________________
/ PLAY [WordPress Server - Install LEMP Stack with PHP 5.6 \
\ and MariaDB MySQL] /
----------------------------------------------------------
\ ^__^
\ (oo)\_______
(__)\ )\/\
||----w |
|| ||
_________________
< GATHERING FACTS >
-----------------
\ ^__^
\ (oo)\_______
(__)\ )\/\
||----w |
|| ||
fatal: [test.mydomain.com] => SSH Error: Permission denied (publickey,password).
while connecting to 208.113.137.182:22
It is sometimes useful to re-run the command using -vvvv, which prints SSH debug output to help diagnose the issue.
_________________________________________
< TASK: common | Validate Ansible version >
-----------------------------------------
\ ^__^
\ (oo)\_______
(__)\ )\/\
||----w |
|| ||
FATAL: no hosts matched or all hosts have already failed -- aborting
____________
< PLAY RECAP >
------------
\ ^__^
\ (oo)\_______
(__)\ )\/\
||----w |
|| ||
to retry, use: --limit @/home/koli/server.retry
test.mydomain.com : ok=2 changed=0 unreachable=1 failed=0
If I do it with --ask-pass
I got this:
SSH password:
______________________________
< PLAY [Determine Remote User] >
------------------------------
\ ^__^
\ (oo)\_______
(__)\ )\/\
||----w |
|| ||
_____________________________________________________________
/ TASK: remote-user | Determine whether to connect as root or \
\ admin_user /
-------------------------------------------------------------
\ ^__^
\ (oo)\_______
(__)\ )\/\
||----w |
|| ||
ok: [test.mydomain.com -> 127.0.0.1]
___________________________________________________
< TASK: remote-user | Set remote user for each host >
---------------------------------------------------
\ ^__^
\ (oo)\_______
(__)\ )\/\
||----w |
|| ||
ok: [test.mydomain.com]
__________________________________________________________
/ PLAY [WordPress Server - Install LEMP Stack with PHP 5.6 \
\ and MariaDB MySQL] /
----------------------------------------------------------
\ ^__^
\ (oo)\_______
(__)\ )\/\
||----w |
|| ||
_________________
< GATHERING FACTS >
-----------------
\ ^__^
\ (oo)\_______
(__)\ )\/\
||----w |
|| ||
fatal: [test.mydomain.com] => Authentication failure.
_________________________________________
< TASK: common | Validate Ansible version >
-----------------------------------------
\ ^__^
\ (oo)\_______
(__)\ )\/\
||----w |
|| ||
FATAL: no hosts matched or all hosts have already failed -- aborting
____________
< PLAY RECAP >
------------
\ ^__^
\ (oo)\_______
(__)\ )\/\
||----w |
|| ||
to retry, use: --limit @/home/koli/server.retry
test.mydomain.com : ok=2 changed=0 unreachable=1 failed=0
And if i try ./deploy.sh production test.mydomain.com
, then i get this:
< PLAY [Deploy WP site] >
-----------------------
\ ^__^
\ (oo)\_______
(__)\ )\/\
||----w |
|| ||
_________________
< GATHERING FACTS >
-----------------
\ ^__^
\ (oo)\_______
(__)\ )\/\
||----w |
|| ||
fatal: [test.mydomain.com] => SSH Error: Permission denied (publickey,password).
while connecting to 208.113.137.182: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 >
---------------------------
\ ^__^
\ (oo)\_______
(__)\ )\/\
||----w |
|| ||
FATAL: no hosts matched or all hosts have already failed -- aborting
____________
< PLAY RECAP >
------------
\ ^__^
\ (oo)\_______
(__)\ )\/\
||----w |
|| ||
to retry, use: --limit @/home/koli/deploy.retry
test.mydomain.com : ok=0 changed=0 unreachable=1 failed=0
I’m sure i just missed to set my ssh user and pwd, but I have no idea where.