Thanks for the responses.
@kalenjohnson The example.com domain is for the purposes of posting here and I should have mentioned that.
I have run the playbook with the -vvvv option, and this is the output:
Using /Users/chinaski/Sites/small-projects/trellis/ansible.cfg as config file
Loaded callback output of type stdout, v2.0
PLAYBOOK: server.yml ***********************************************************
3 plays in server.yml
PLAY [Ensure necessary variables are defined] **********************************
TASK [Ensure environment is defined] *******************************************
task path: /Users/chinaski/Sites/small-projects/trellis/variable-check.yml:8
skipping: [localhost] => {“changed”: false, “skip_reason”: “Conditional check failed”, “skipped”: true}
PLAY [Determine Remote User] ***************************************************
TASK [remote-user : Require manual definition of remote-user] ******************
task path: /Users/chinaski/Sites/small-projects/trellis/roles/remote-user/tasks/main.yml:3
skipping: [example.com] => {“changed”: false, “skip_reason”: “Conditional check failed”, “skipped”: true}
TASK [remote-user : Check whether Ansible can connect as root] *****************
task path: /Users/chinaski/Sites/small-projects/trellis/roles/remote-user/tasks/main.yml:10
ESTABLISH LOCAL CONNECTION FOR USER: chinaski
localhost EXEC /bin/sh -c ‘( umask 22 && mkdir -p “echo $HOME/.ansible/tmp/ansible-tmp-1470840650.17-28503599837682
” && echo “echo $HOME/.ansible/tmp/ansible-tmp-1470840650.17-28503599837682
” )’
localhost PUT /var/folders/jd/dkv6c83s5j13l_pz9cbyq3340000gn/T/tmpuUBG8T TO /Users/chinaski/.ansible/tmp/ansible-tmp-1470840650.17-28503599837682/command
localhost EXEC /bin/sh -c ‘LANG=en_CA.UTF-8 LC_ALL=en_CA.UTF-8 LC_MESSAGES=en_CA.UTF-8 /usr/bin/python /Users/chinaski/.ansible/tmp/ansible-tmp-1470840650.17-28503599837682/command; rm -rf “/Users/chinaski/.ansible/tmp/ansible-tmp-1470840650.17-28503599837682/” > /dev/null 2>&1’
ok: [example.com → localhost] => {“changed”: false, “cmd”: [“ansible”, “example.com”, “-m”, “ping”, “-u”, “root”, “–connection=smart”, “–vault-password-file=.vault_pass”, “–timeout=10”, “–inventory-file=hosts”], “delta”: “0:00:01.442451”, “end”: “2016-08-10 07:50:51.683473”, “failed”: false, “failed_when_result”: false, “invocation”: {“module_args”: {“_raw_params”: “ansible example.com -m ping -u root --connection=‘smart’ --vault-password-file=‘.vault_pass’ --timeout=‘10’ --inventory-file=‘hosts’”, “_uses_shell”: false, “chdir”: null, “creates”: null, “executable”: null, “removes”: null, “warn”: true}, “module_name”: “command”}, “rc”: 2, “start”: “2016-08-10 07:50:50.241022”, “stderr”: “”, “stdout”: “\u001b[0;31mexample.com | FAILED! => {\n "changed": false, \n "failed": true, \n "module_stderr": "", \n "module_stdout": "/bin/sh: 1: /usr/bin/python: not found\r\n", \n "msg": "MODULE FAILURE", \n "parsed": false\n}\u001b[0m”, “stdout_lines”: [“\u001b[0;31mexample.com | FAILED! => {”, " "changed": false, ", " "failed": true, ", " "module_stderr": "", ", " "module_stdout": "/bin/sh: 1: /usr/bin/python: not found\r\n", ", " "msg": "MODULE FAILURE", “, " "parsed": false”, “}\u001b[0m”], “warnings”: }
TASK [remote-user : Set remote user for each host] *****************************
task path: /Users/chinaski/Sites/small-projects/trellis/roles/remote-user/tasks/main.yml:17
ok: [example.com] => {“ansible_facts”: {“ansible_user”: “admin”}, “changed”: false, “invocation”: {“module_args”: {“ansible_user”: “admin”}, “module_name”: “set_fact”}}
TASK [remote-user : Announce which user was selected] **************************
task path: /Users/chinaski/Sites/small-projects/trellis/roles/remote-user/tasks/main.yml:23
Note: Ansible will attempt connections as user = admin
ok: [example.com] => {}
PLAY [WordPress Server - Install LEMP Stack with PHP 7.0 and MariaDB MySQL] ****
TASK [setup] *******************************************************************
<example.com> ESTABLISH SSH CONNECTION FOR USER: admin
<example.com> SSH: EXEC ssh -C -vvv -o ForwardAgent=yes -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=admin -o ConnectTimeout=10 -o ControlPath=/Users/chinaski/.ansible/cp/ansible-ssh-%h-%p-%r example.com ‘/bin/sh -c ‘"’"’( umask 22 && mkdir -p “echo $HOME/.ansible/tmp/ansible-tmp-1470840651.91-108995243000570
” && echo “echo $HOME/.ansible/tmp/ansible-tmp-1470840651.91-108995243000570
” )‘"’"‘’
System info:
Ansible 2.0.2.0; Darwin
Trellis at “Setup permalink structure for multisite installs too”
Failed to connect to the host via ssh.
fatal: [example.com]: UNREACHABLE! => {“changed”: false, “unreachable”: true}
to retry, use: --limit @server.retry
PLAY RECAP *********************************************************************
example.com : ok=3 changed=0 unreachable=1 failed=0
localhost : ok=0 changed=0 unreachable=0 failed=0