I’m trying to migrate to digitalocean and I get the following error:
trellis git:(master) ✗ ansible-playbook server.yml -e env=production
[DEPRECATION WARNING]: The use of 'include' for tasks has been deprecated. Use 'import_tasks' for static inclusions or 'include_tasks' for dynamic inclusions. This feature will be removed in a future release. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.
[DEPRECATION WARNING]: include is kept for backwards compatibility but usage is discouraged. The module documentation details page may explain more about this rationale.. This feature will be removed in a future release. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.
PLAY [Ensure necessary variables are defined] ****************************************************************************************************************************************************************************************************************************************************************************************************************
TASK [Ensure environment is defined] *************************************************************************************************************************************************************************************************************************************************************************************************************************
skipping: [localhost]
PLAY [Test Connection and Determine Remote User] *************************************************************************************************************************************************************************************************************************************************************************************************************
TASK [connection : Require manual definition of remote-user] *************************************************************************************************************************************************************************************************************************************************************************************************
skipping: [xxx.xxx.xxx.xxx]
TASK [connection : Specify preferred HostKeyAlgorithms for unknown hosts] ************************************************************************************************************************************************************************************************************************************************************************************
ok: [xxx.xxx.xxx.xxx]
TASK [connection : Check whether Ansible can connect as root] ************************************************************************************************************************************************************************************************************************************************************************************************
The authenticity of host '(xxx.xxx.xxx.xxx)' can't be established.
ED25519 key fingerprint is SHA256:4W60I97WFC/rMO6czcfXQ143Yo1qqtRLLa5qxA+Zr6o.
Are you sure you want to continue connecting (yes/no)? yes
ok: [xxx.xxx.xxx.xxx -> localhost]
TASK [connection : Warn about change in host keys] ***********************************************************************************************************************************************************************************************************************************************************************************************************
skipping: [xxx.xxx.xxx.xxx]
TASK [connection : Set remote user for each host] ************************************************************************************************************************************************************************************************************************************************************************************************************
ok: [xxx.xxx.xxx.xxx]
TASK [connection : Announce which user was selected] *********************************************************************************************************************************************************************************************************************************************************************************************************
Note: Ansible will attempt connections as user = root
Note: The host `xxx.xxx.xxx.xxx` was not detected in known_hosts
so Trellis prompted the host to offer a key type that will work with
the stronger key types Trellis configures on the server. This avoids future
connection failures due to changed host keys. Trellis used this SSH option:
-o HostKeyAlgorithms=ssh-ed25519-cert-v01@openssh.com,ssh-rsa-
cert-v01@openssh.com,ssh-ed25519,ssh-rsa
To prevent Trellis from ever using this SSH option, add this to group_vars:
dynamic_host_key_algorithms: false
ok: [xxx.xxx.xxx.xxx]
TASK [connection : Load become password] *********************************************************************************************************************************************************************************************************************************************************************************************************************
skipping: [xxx.xxx.xxx.xxx]
PLAY [Install prerequisites] *********************************************************************************************************************************************************************************************************************************************************************************************************************************
TASK [Install Python 2.x] ************************************************************************************************************************************************************************************************************************************************************************************************************************************
System info:
Ansible 2.4.1.0; Darwin
Trellis at "Add Nginx `ssl.no-default.conf` to drop requests for unknown hosts"
---------------------------------------------------
Failed to connect to the host via ssh: root@xxx.xxx.xxx.xxx: Permission
denied (publickey).
fatal: [xxx.xxx.xxx.xxx]: UNREACHABLE! => {"changed": false, "unreachable": true}
to retry, use: --limit @/Users/cristianvelasquez/Work/PHP/Wordpress/lafactoriaoficial.com/trellis/server.retry
PLAY RECAP ***************************************************************************************************************************************************************************************************************************************************************************************************************************************************
xxx.xxx.xxx.xxx : ok=4 changed=0 unreachable=1 failed=0
localhost : ok=0 changed=0 unreachable=0 failed=0