PLAY [Ensure necessary variables are defined] ******************************************************************
[WARNING]: Failure using method (v2_playbook_on_play_start) in callback plugin (<ansible.plugins.callback./hom
e/User/trellis/example.com/trellis/lib/trellis/plugins/callback/vars.CallbackModule object at 0x6fff89012b0>):
'dict' object has no attribute 'iteritems'
[WARNING]: Skipping plugin (/home/User/trellis/example.com/trellis/lib/trellis/plugins/vars/version.py) as it
seems to be invalid: Trellis does not yet support Python 3.6.4. Please use Python 2.7.
TASK [Ensure environment is defined] ***************************************************************************
[WARNING]: Failure using method (v2_runner_on_skipped) in callback plugin
(<ansible.plugins.callback.output.CallbackModule object at 0x6fffd50e8d0>): name 'unicode' is not defined
PLAY [Test Connection and Determine Remote User] ***************************************************************
TASK [connection : Require manual definition of remote-user] ***************************************************
TASK [connection : Specify preferred HostKeyAlgorithms for unknown hosts] **************************************
TASK [connection : Check whether Ansible can connect as root] **************************************************
[WARNING]: Failure using method (v2_runner_on_failed) in callback plugin
(<ansible.plugins.callback.output.CallbackModule object at 0x6fffd50e8d0>): name 'unicode' is not defined
to retry, use: --limit @/home/User/trellis/example.com/trellis/server.retry
PLAY RECAP *****************************************************************************************************
ip-here : ok=0 changed=0 unreachable=0 failed=1
localhost : ok=0 changed=0 unreachable=0 failed=0
Name ‘unicode’ is not defined` is a Python 3 error. The output you included has this as well:
[WARNING]: Skipping plugin (/home/User/trellis/example.com/trellis/lib/trellis/plugins/vars/version.py) as it
seems to be invalid: Trellis does not yet support Python 3.6.4. Please use Python 2.7.
$ ansible-playbook server.yml -e env=production
Traceback (most recent call last):
File "/usr/bin/ansible-playbook", line 67, in <module>
import ansible.constants as C
File "/usr/lib/python3.6/site-packages/ansible/constants.py", line 11, in <module>
from jinja2 import Template
ImportError: cannot import name 'Template'
This is much more of a Python issue than a Trellis one, and unfortunately we can’t effectively support Python on this forum. I recommend Stack Overflow, or other general support resources for troubleshooting this issue.
Few hours into solving - no luck, so far. Will post if I find a solution.
Error:
System info:
Ansible 2.4.0.0; Darwin
Trellis at “Update vagrant_box_version to >= 201801.02.0”---------------------------------------------------
failed to validate
/home/ubuntu/.ansible/tmp/…/source
line 20: Bad SSH2 mac spec 'hmac-sha2-512-etm@openssh.com,hmac-…
Edit: Managed to get past EMAC’s issue by removing the bad emacs from /Roles/Defaults/Main.yml
Identified the ones by manually SSHing into my instance and running
$ sshd -T
Then proceeded to remove any un-recognised in “sshd_macs_default:”
!!! But now hitting a wall with letsencrypt <sigh!>