Hello,
Thanks for taking the time to read this. The last bit I get in the deploy I get this in red:
failed: [goltastico.com] => {"cmd": "composer install --no-ansi --no-dev --no-interaction --no-progress --optimize-autoloader --no-scripts", "failed": true, "rc": 2}
msg: [Errno 2] No such file or directory
So I went on to debug and this is as far I got:
Josephs-MacBook-Pro:trellis joseph$ ansible-playbook deploy.yml -e "site=goltastico.com env=production" -vvvv
PLAY [Ensure necessary variables are defined] *********************************
TASK: [Ensure environment is defined] *****************************************
skipping: [localhost]
PLAY [Deploy WP site] *********************************************************
GATHERING FACTS ***************************************************************
<goltastico.com> ESTABLISH CONNECTION FOR USER: root
<goltastico.com> REMOTE_MODULE setup
<goltastico.com> EXEC ssh -C -tt -vvv -o ForwardAgent=yes -o ControlMaster=auto -o ControlPersist=60s -o ControlPath="/Users/joseph/.ansible/cp/ansible-ssh-%h-%p-%r" -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 goltastico.com /bin/sh -c 'mkdir -p $HOME/.ansible/tmp/ansible-tmp-1451435417.32-113636654163918 && chmod a+rx $HOME/.ansible/tmp/ansible-tmp-1451435417.32-113636654163918 && echo $HOME/.ansible/tmp/ansible-tmp-1451435417.32-113636654163918'
<goltastico.com> PUT /var/folders/qw/s03zm3m10kg7ygwq2gjk2jqc0000gn/T/tmpD6lC45 TO /root/.ansible/tmp/ansible-tmp-1451435417.32-113636654163918/setup
<goltastico.com> EXEC ssh -C -tt -vvv -o ForwardAgent=yes -o ControlMaster=auto -o ControlPersist=60s -o ControlPath="/Users/joseph/.ansible/cp/ansible-ssh-%h-%p-%r" -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 goltastico.com /bin/sh -c 'LANG=en_US.UTF-8 LC_CTYPE=en_US.UTF-8 /usr/bin/python /root/.ansible/tmp/ansible-tmp-1451435417.32-113636654163918/setup; rm -rf /root/.ansible/tmp/ansible-tmp-1451435417.32-113636654163918/ >/dev/null 2>&1'
ok: [goltastico.com]
TASK: [deploy | Initialize] ***************************************************
<goltastico.com> ESTABLISH CONNECTION FOR USER: root
<goltastico.com> REMOTE_MODULE deploy_helper state=present path=/srv/www/goltastico.com
<goltastico.com> EXEC ssh -C -tt -vvv -o ForwardAgent=yes -o ControlMaster=auto -o ControlPersist=60s -o ControlPath="/Users/joseph/.ansible/cp/ansible-ssh-%h-%p-%r" -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 goltastico.com /bin/sh -c 'mkdir -p $HOME/.ansible/tmp/ansible-tmp-1451435419.36-103624443650232 && chmod a+rx $HOME/.ansible/tmp/ansible-tmp-1451435419.36-103624443650232 && echo $HOME/.ansible/tmp/ansible-tmp-1451435419.36-103624443650232'
<goltastico.com> PUT /var/folders/qw/s03zm3m10kg7ygwq2gjk2jqc0000gn/T/tmpuaCuXG TO /root/.ansible/tmp/ansible-tmp-1451435419.36-103624443650232/deploy_helper
<goltastico.com> EXEC ssh -C -tt -vvv -o ForwardAgent=yes -o ControlMaster=auto -o ControlPersist=60s -o ControlPath="/Users/joseph/.ansible/cp/ansible-ssh-%h-%p-%r" -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 goltastico.com /bin/sh -c 'LANG=en_US.UTF-8 LC_CTYPE=en_US.UTF-8 /usr/bin/python /root/.ansible/tmp/ansible-tmp-1451435419.36-103624443650232/deploy_helper; rm -rf /root/.ansible/tmp/ansible-tmp-1451435419.36-103624443650232/ >/dev/null 2>&1'
ok: [goltastico.com] => {"ansible_facts": {"deploy_helper": {"current_path": "/srv/www/goltastico.com/current", "new_release": "20151229183020", "new_release_path": "/srv/www/goltastico.com/releases/20151229183020", "previous_release": null, "previous_release_path": null, "project_path": "/srv/www/goltastico.com", "releases_path": "/srv/www/goltastico.com/releases", "shared_path": "/srv/www/goltastico.com/shared", "unfinished_filename": "DEPLOY_UNFINISHED"}}, "changed": false, "state": "present"}
TASK: [deploy | Check whether project source path is a git repo] **************
<goltastico.com> ESTABLISH CONNECTION FOR USER: root
<goltastico.com> REMOTE_MODULE stat path=/srv/www/goltastico.com/shared/source/.git
<goltastico.com> EXEC ssh -C -tt -vvv -o ForwardAgent=yes -o ControlMaster=auto -o ControlPersist=60s -o ControlPath="/Users/joseph/.ansible/cp/ansible-ssh-%h-%p-%r" -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 goltastico.com /bin/sh -c 'mkdir -p $HOME/.ansible/tmp/ansible-tmp-1451435420.41-209016334992350 && chmod a+rx $HOME/.ansible/tmp/ansible-tmp-1451435420.41-209016334992350 && echo $HOME/.ansible/tmp/ansible-tmp-1451435420.41-209016334992350'
<goltastico.com> PUT /var/folders/qw/s03zm3m10kg7ygwq2gjk2jqc0000gn/T/tmpJ5N_Zl TO /root/.ansible/tmp/ansible-tmp-1451435420.41-209016334992350/stat
<goltastico.com> EXEC ssh -C -tt -vvv -o ForwardAgent=yes -o ControlMaster=auto -o ControlPersist=60s -o ControlPath="/Users/joseph/.ansible/cp/ansible-ssh-%h-%p-%r" -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 goltastico.com /bin/sh -c 'LANG=en_US.UTF-8 LC_CTYPE=en_US.UTF-8 /usr/bin/python /root/.ansible/tmp/ansible-tmp-1451435420.41-209016334992350/stat; rm -rf /root/.ansible/tmp/ansible-tmp-1451435420.41-209016334992350/ >/dev/null 2>&1'
ok: [goltastico.com] => {"changed": false, "stat": {"atime": 1451434275.1768587, "ctime": 1451435386.0479662, "dev": 51713, "exists": true, "gid": 0, "gr_name": "root", "inode": 919031, "isblk": false, "ischr": false, "isdir": true, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mode": "0755", "mtime": 1451435386.0479662, "nlink": 8, "path": "/srv/www/goltastico.com/shared/source/.git", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 4096, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": true, "xoth": true, "xusr": true}}
TASK: [deploy | Get current git remote URL] ***********************************
<goltastico.com> ESTABLISH CONNECTION FOR USER: root
<goltastico.com> REMOTE_MODULE command chdir=/srv/www/goltastico.com/shared/source git config --get remote.origin.url
<goltastico.com> EXEC ssh -C -tt -vvv -o ForwardAgent=yes -o ControlMaster=auto -o ControlPersist=60s -o ControlPath="/Users/joseph/.ansible/cp/ansible-ssh-%h-%p-%r" -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 goltastico.com /bin/sh -c 'mkdir -p $HOME/.ansible/tmp/ansible-tmp-1451435421.49-23792308152631 && chmod a+rx $HOME/.ansible/tmp/ansible-tmp-1451435421.49-23792308152631 && echo $HOME/.ansible/tmp/ansible-tmp-1451435421.49-23792308152631'
<goltastico.com> PUT /var/folders/qw/s03zm3m10kg7ygwq2gjk2jqc0000gn/T/tmpcaQ0op TO /root/.ansible/tmp/ansible-tmp-1451435421.49-23792308152631/command
<goltastico.com> EXEC ssh -C -tt -vvv -o ForwardAgent=yes -o ControlMaster=auto -o ControlPersist=60s -o ControlPath="/Users/joseph/.ansible/cp/ansible-ssh-%h-%p-%r" -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 goltastico.com /bin/sh -c 'LANG=en_US.UTF-8 LC_CTYPE=en_US.UTF-8 /usr/bin/python /root/.ansible/tmp/ansible-tmp-1451435421.49-23792308152631/command; rm -rf /root/.ansible/tmp/ansible-tmp-1451435421.49-23792308152631/ >/dev/null 2>&1'
ok: [goltastico.com] => {"changed": false, "cmd": ["git", "config", "--get", "remote.origin.url"], "delta": "0:00:00.002767", "end": "2015-12-29 18:30:22.517727", "rc": 0, "start": "2015-12-29 18:30:22.514960", "stderr": "", "stdout": "git@bitbucket.org:goltastico/goltastico-com.git", "stdout_lines": ["git@bitbucket.org:goltastico/goltastico-com.git"], "warnings": ["Consider using git module rather than running git"]}
TASK: [deploy | Update git remote URL] ****************************************
skipping: [goltastico.com]
TASK: [deploy | Clone project files] ******************************************
<goltastico.com> ESTABLISH CONNECTION FOR USER: root
<goltastico.com> REMOTE_MODULE git version=master dest=/srv/www/goltastico.com/shared/source repo=
<goltastico.com> EXEC ssh -C -tt -vvv -o ForwardAgent=yes -o ControlMaster=auto -o ControlPersist=60s -o ControlPath="/Users/joseph/.ansible/cp/ansible-ssh-%h-%p-%r" -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 goltastico.com /bin/sh -c 'mkdir -p $HOME/.ansible/tmp/ansible-tmp-1451435422.62-90283073185521 && chmod a+rx $HOME/.ansible/tmp/ansible-tmp-1451435422.62-90283073185521 && echo $HOME/.ansible/tmp/ansible-tmp-1451435422.62-90283073185521'
<goltastico.com> PUT /var/folders/qw/s03zm3m10kg7ygwq2gjk2jqc0000gn/T/tmpWqERIp TO /root/.ansible/tmp/ansible-tmp-1451435422.62-90283073185521/git
<goltastico.com> EXEC ssh -C -tt -vvv -o ForwardAgent=yes -o ControlMaster=auto -o ControlPersist=60s -o ControlPath="/Users/joseph/.ansible/cp/ansible-ssh-%h-%p-%r" -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 goltastico.com /bin/sh -c 'LANG=en_US.UTF-8 LC_CTYPE=en_US.UTF-8 /usr/bin/python /root/.ansible/tmp/ansible-tmp-1451435422.62-90283073185521/git; rm -rf /root/.ansible/tmp/ansible-tmp-1451435422.62-90283073185521/ >/dev/null 2>&1'
ok: [goltastico.com] => {"after": "e3dbb215dd5c983f942c9d496777eba00efdd96a", "before": "e3dbb215dd5c983f942c9d496777eba00efdd96a", "changed": false}
TASK: [deploy | write unfinished file] ****************************************
<goltastico.com> ESTABLISH CONNECTION FOR USER: root
<goltastico.com> REMOTE_MODULE file state=touch path=/srv/www/goltastico.com/shared/source/DEPLOY_UNFINISHED
<goltastico.com> EXEC ssh -C -tt -vvv -o ForwardAgent=yes -o ControlMaster=auto -o ControlPersist=60s -o ControlPath="/Users/joseph/.ansible/cp/ansible-ssh-%h-%p-%r" -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 goltastico.com /bin/sh -c 'mkdir -p $HOME/.ansible/tmp/ansible-tmp-1451435435.31-121364691362634 && chmod a+rx $HOME/.ansible/tmp/ansible-tmp-1451435435.31-121364691362634 && echo $HOME/.ansible/tmp/ansible-tmp-1451435435.31-121364691362634'
<goltastico.com> PUT /var/folders/qw/s03zm3m10kg7ygwq2gjk2jqc0000gn/T/tmpM9dE5Z TO /root/.ansible/tmp/ansible-tmp-1451435435.31-121364691362634/file
<goltastico.com> EXEC ssh -C -tt -vvv -o ForwardAgent=yes -o ControlMaster=auto -o ControlPersist=60s -o ControlPath="/Users/joseph/.ansible/cp/ansible-ssh-%h-%p-%r" -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 goltastico.com /bin/sh -c 'LANG=en_US.UTF-8 LC_CTYPE=en_US.UTF-8 /usr/bin/python /root/.ansible/tmp/ansible-tmp-1451435435.31-121364691362634/file; rm -rf /root/.ansible/tmp/ansible-tmp-1451435435.31-121364691362634/ >/dev/null 2>&1'
changed: [goltastico.com] => {"changed": true, "dest": "/srv/www/goltastico.com/shared/source/DEPLOY_UNFINISHED", "gid": 0, "group": "root", "mode": "0644", "owner": "root", "size": 0, "state": "file", "uid": 0}
TASK: [deploy | Copy files to new build dir] **********************************
<goltastico.com> ESTABLISH CONNECTION FOR USER: root
<goltastico.com> REMOTE_MODULE command cp -pr /srv/www/goltastico.com/shared/source /srv/www/goltastico.com/releases/20151229183020
<goltastico.com> EXEC ssh -C -tt -vvv -o ForwardAgent=yes -o ControlMaster=auto -o ControlPersist=60s -o ControlPath="/Users/joseph/.ansible/cp/ansible-ssh-%h-%p-%r" -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 goltastico.com /bin/sh -c 'mkdir -p $HOME/.ansible/tmp/ansible-tmp-1451435436.99-267347289044645 && chmod a+rx $HOME/.ansible/tmp/ansible-tmp-1451435436.99-267347289044645 && echo $HOME/.ansible/tmp/ansible-tmp-1451435436.99-267347289044645'
<goltastico.com> PUT /var/folders/qw/s03zm3m10kg7ygwq2gjk2jqc0000gn/T/tmp1SZQhU TO /root/.ansible/tmp/ansible-tmp-1451435436.99-267347289044645/command
<goltastico.com> EXEC ssh -C -tt -vvv -o ForwardAgent=yes -o ControlMaster=auto -o ControlPersist=60s -o ControlPath="/Users/joseph/.ansible/cp/ansible-ssh-%h-%p-%r" -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 goltastico.com /bin/sh -c 'LANG=en_US.UTF-8 LC_CTYPE=en_US.UTF-8 /usr/bin/python /root/.ansible/tmp/ansible-tmp-1451435436.99-267347289044645/command; rm -rf /root/.ansible/tmp/ansible-tmp-1451435436.99-267347289044645/ >/dev/null 2>&1'
changed: [goltastico.com] => {"changed": true, "cmd": ["cp", "-pr", "/srv/www/goltastico.com/shared/source", "/srv/www/goltastico.com/releases/20151229183020"], "delta": "0:00:00.019607", "end": "2015-12-29 18:30:38.392474", "rc": 0, "start": "2015-12-29 18:30:38.372867", "stderr": "", "stdout": "", "warnings": []}
TASK: [deploy | Check for project subtree] ************************************
<goltastico.com> ESTABLISH CONNECTION FOR USER: root
<goltastico.com> REMOTE_MODULE stat path=/srv/www/goltastico.com/releases/20151229183020/site
<goltastico.com> EXEC ssh -C -tt -vvv -o ForwardAgent=yes -o ControlMaster=auto -o ControlPersist=60s -o ControlPath="/Users/joseph/.ansible/cp/ansible-ssh-%h-%p-%r" -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 goltastico.com /bin/sh -c 'mkdir -p $HOME/.ansible/tmp/ansible-tmp-1451435438.51-267144348906544 && chmod a+rx $HOME/.ansible/tmp/ansible-tmp-1451435438.51-267144348906544 && echo $HOME/.ansible/tmp/ansible-tmp-1451435438.51-267144348906544'
<goltastico.com> PUT /var/folders/qw/s03zm3m10kg7ygwq2gjk2jqc0000gn/T/tmp17sO9i TO /root/.ansible/tmp/ansible-tmp-1451435438.51-267144348906544/stat
<goltastico.com> EXEC ssh -C -tt -vvv -o ForwardAgent=yes -o ControlMaster=auto -o ControlPersist=60s -o ControlPath="/Users/joseph/.ansible/cp/ansible-ssh-%h-%p-%r" -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 goltastico.com /bin/sh -c 'LANG=en_US.UTF-8 LC_CTYPE=en_US.UTF-8 /usr/bin/python /root/.ansible/tmp/ansible-tmp-1451435438.51-267144348906544/stat; rm -rf /root/.ansible/tmp/ansible-tmp-1451435438.51-267144348906544/ >/dev/null 2>&1'
ok: [goltastico.com] => {"changed": false, "stat": {"atime": 1451434276.4328847, "ctime": 1451435438.3810544, "dev": 51713, "exists": true, "gid": 0, "gr_name": "root", "inode": 1050852, "isblk": false, "ischr": false, "isdir": true, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mode": "0755", "mtime": 1451434276.448885, "nlink": 4, "path": "/srv/www/goltastico.com/releases/20151229183020/site", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 4096, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": true, "xoth": true, "xusr": true}}
TASK: [deploy | Fail if project_subtree_path is set incorrectly] **************
skipping: [goltastico.com]
TASK: [deploy | Move project subtree into root folder] ************************
<goltastico.com> ESTABLISH CONNECTION FOR USER: root
<goltastico.com> REMOTE_MODULE command mv /srv/www/goltastico.com/releases/20151229183020/site/* /srv/www/goltastico.com/releases/20151229183020 #USE_SHELL
<goltastico.com> EXEC ssh -C -tt -vvv -o ForwardAgent=yes -o ControlMaster=auto -o ControlPersist=60s -o ControlPath="/Users/joseph/.ansible/cp/ansible-ssh-%h-%p-%r" -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 goltastico.com /bin/sh -c 'mkdir -p $HOME/.ansible/tmp/ansible-tmp-1451435440.49-160832805142900 && chmod a+rx $HOME/.ansible/tmp/ansible-tmp-1451435440.49-160832805142900 && echo $HOME/.ansible/tmp/ansible-tmp-1451435440.49-160832805142900'
<goltastico.com> PUT /var/folders/qw/s03zm3m10kg7ygwq2gjk2jqc0000gn/T/tmp4XVYji TO /root/.ansible/tmp/ansible-tmp-1451435440.49-160832805142900/command
<goltastico.com> EXEC ssh -C -tt -vvv -o ForwardAgent=yes -o ControlMaster=auto -o ControlPersist=60s -o ControlPath="/Users/joseph/.ansible/cp/ansible-ssh-%h-%p-%r" -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 goltastico.com /bin/sh -c 'LANG=en_US.UTF-8 LC_CTYPE=en_US.UTF-8 /usr/bin/python /root/.ansible/tmp/ansible-tmp-1451435440.49-160832805142900/command; rm -rf /root/.ansible/tmp/ansible-tmp-1451435440.49-160832805142900/ >/dev/null 2>&1'
changed: [goltastico.com] => {"changed": true, "cmd": "mv /srv/www/goltastico.com/releases/20151229183020/site/* /srv/www/goltastico.com/releases/20151229183020", "delta": "0:00:00.003113", "end": "2015-12-29 18:30:41.800874", "rc": 0, "start": "2015-12-29 18:30:41.797761", "stderr": "", "stdout": "", "warnings": []}
TASK: [deploy | Remove unwanted files/folders from new release] ***************
<goltastico.com> ESTABLISH CONNECTION FOR USER: root
<goltastico.com> REMOTE_MODULE file state=absent path=/srv/www/goltastico.com/releases/20151229183020/.git
<goltastico.com> EXEC ssh -C -tt -vvv -o ForwardAgent=yes -o ControlMaster=auto -o ControlPersist=60s -o ControlPath="/Users/joseph/.ansible/cp/ansible-ssh-%h-%p-%r" -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 goltastico.com /bin/sh -c 'mkdir -p $HOME/.ansible/tmp/ansible-tmp-1451435441.88-1824545801469 && chmod a+rx $HOME/.ansible/tmp/ansible-tmp-1451435441.88-1824545801469 && echo $HOME/.ansible/tmp/ansible-tmp-1451435441.88-1824545801469'
<goltastico.com> PUT /var/folders/qw/s03zm3m10kg7ygwq2gjk2jqc0000gn/T/tmp1vmZdZ TO /root/.ansible/tmp/ansible-tmp-1451435441.88-1824545801469/file
<goltastico.com> EXEC ssh -C -tt -vvv -o ForwardAgent=yes -o ControlMaster=auto -o ControlPersist=60s -o ControlPath="/Users/joseph/.ansible/cp/ansible-ssh-%h-%p-%r" -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 goltastico.com /bin/sh -c 'LANG=en_US.UTF-8 LC_CTYPE=en_US.UTF-8 /usr/bin/python /root/.ansible/tmp/ansible-tmp-1451435441.88-1824545801469/file; rm -rf /root/.ansible/tmp/ansible-tmp-1451435441.88-1824545801469/ >/dev/null 2>&1'
changed: [goltastico.com] => (item=.git) => {"changed": true, "item": ".git", "path": "/srv/www/goltastico.com/releases/20151229183020/.git", "state": "absent"}
TASK: [deploy | Copy project templates] ***************************************
<goltastico.com> ESTABLISH CONNECTION FOR USER: root
<goltastico.com> EXEC ssh -C -tt -vvv -o ForwardAgent=yes -o ControlMaster=auto -o ControlPersist=60s -o ControlPath="/Users/joseph/.ansible/cp/ansible-ssh-%h-%p-%r" -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 goltastico.com /bin/sh -c 'mkdir -p $HOME/.ansible/tmp/ansible-tmp-1451435443.09-207878159519651 && chmod a+rx $HOME/.ansible/tmp/ansible-tmp-1451435443.09-207878159519651 && echo $HOME/.ansible/tmp/ansible-tmp-1451435443.09-207878159519651'
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 13 100 13 0 0 23 0 --:--:-- --:--:-- --:--:-- 23
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 13 100 13 0 0 28 0 --:--:-- --:--:-- --:--:-- 28
<goltastico.com> EXEC ssh -C -tt -vvv -o ForwardAgent=yes -o ControlMaster=auto -o ControlPersist=60s -o ControlPath="/Users/joseph/.ansible/cp/ansible-ssh-%h-%p-%r" -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 goltastico.com /bin/sh -c 'rc=flag; [ -r /srv/www/goltastico.com/releases/20151229183020/.env ] || rc=2; [ -f /srv/www/goltastico.com/releases/20151229183020/.env ] || rc=1; [ -d /srv/www/goltastico.com/releases/20151229183020/.env ] && rc=3; python -V 2>/dev/null || rc=4; [ x"$rc" != "xflag" ] && echo "${rc} "/srv/www/goltastico.com/releases/20151229183020/.env && exit 0; (python -c '"'"'import hashlib; BLOCKSIZE = 65536; hasher = hashlib.sha1(); afile = open("'"'"'/srv/www/goltastico.com/releases/20151229183020/.env'"'"'", "rb") buf = afile.read(BLOCKSIZE) while len(buf) > 0: hasher.update(buf) buf = afile.read(BLOCKSIZE) afile.close() print(hasher.hexdigest())'"'"' 2>/dev/null) || (python -c '"'"'import sha; BLOCKSIZE = 65536; hasher = sha.sha(); afile = open("'"'"'/srv/www/goltastico.com/releases/20151229183020/.env'"'"'", "rb") buf = afile.read(BLOCKSIZE) while len(buf) > 0: hasher.update(buf) buf = afile.read(BLOCKSIZE) afile.close() print(hasher.hexdigest())'"'"' 2>/dev/null) || (echo '"'"'0 '"'"'/srv/www/goltastico.com/releases/20151229183020/.env)'
<goltastico.com> PUT /var/folders/qw/s03zm3m10kg7ygwq2gjk2jqc0000gn/T/tmpOvT6BN TO /root/.ansible/tmp/ansible-tmp-1451435443.09-207878159519651/source
<goltastico.com> PUT /var/folders/qw/s03zm3m10kg7ygwq2gjk2jqc0000gn/T/tmpq6LOmv TO /root/.ansible/tmp/ansible-tmp-1451435443.09-207878159519651/copy
<goltastico.com> EXEC ssh -C -tt -vvv -o ForwardAgent=yes -o ControlMaster=auto -o ControlPersist=60s -o ControlPath="/Users/joseph/.ansible/cp/ansible-ssh-%h-%p-%r" -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 goltastico.com /bin/sh -c 'LANG=en_US.UTF-8 LC_CTYPE=en_US.UTF-8 /usr/bin/python /root/.ansible/tmp/ansible-tmp-1451435443.09-207878159519651/copy; rm -rf /root/.ansible/tmp/ansible-tmp-1451435443.09-207878159519651/ >/dev/null 2>&1'
changed: [goltastico.com] => (item={'dest': '.env', 'src': 'roles/deploy/templates/env.j2', 'name': '.env config'}) => {"changed": true, "checksum": "49424c92737071e6eae9f7f468166c35166b9949", "dest": "/srv/www/goltastico.com/releases/20151229183020/.env", "gid": 0, "group": "root", "item": {"dest": ".env", "name": ".env config", "src": "roles/deploy/templates/env.j2"}, "md5sum": "e06bf299bf5460bf6bf10f67d43d2624", "mode": "0644", "owner": "root", "size": 853, "src": "/root/.ansible/tmp/ansible-tmp-1451435443.09-207878159519651/source", "state": "file", "uid": 0}
TASK: [deploy | Check if project folders exist] *******************************
<goltastico.com> ESTABLISH CONNECTION FOR USER: root
<goltastico.com> REMOTE_MODULE stat path=/srv/www/goltastico.com/current/vendor
<goltastico.com> EXEC ssh -C -tt -vvv -o ForwardAgent=yes -o ControlMaster=auto -o ControlPersist=60s -o ControlPath="/Users/joseph/.ansible/cp/ansible-ssh-%h-%p-%r" -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 goltastico.com /bin/sh -c 'mkdir -p $HOME/.ansible/tmp/ansible-tmp-1451435445.95-241163363182251 && chmod a+rx $HOME/.ansible/tmp/ansible-tmp-1451435445.95-241163363182251 && echo $HOME/.ansible/tmp/ansible-tmp-1451435445.95-241163363182251'
<goltastico.com> PUT /var/folders/qw/s03zm3m10kg7ygwq2gjk2jqc0000gn/T/tmp1e6In1 TO /root/.ansible/tmp/ansible-tmp-1451435445.95-241163363182251/stat
<goltastico.com> EXEC ssh -C -tt -vvv -o ForwardAgent=yes -o ControlMaster=auto -o ControlPersist=60s -o ControlPath="/Users/joseph/.ansible/cp/ansible-ssh-%h-%p-%r" -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 goltastico.com /bin/sh -c 'LANG=en_US.UTF-8 LC_CTYPE=en_US.UTF-8 /usr/bin/python /root/.ansible/tmp/ansible-tmp-1451435445.95-241163363182251/stat; rm -rf /root/.ansible/tmp/ansible-tmp-1451435445.95-241163363182251/ >/dev/null 2>&1'
ok: [goltastico.com] => (item=vendor) => {"changed": false, "item": "vendor", "stat": {"exists": false}}
TASK: [deploy | Copy project folders] *****************************************
skipping: [goltastico.com] => (item={'invocation': {'module_name': u'stat', 'module_complex_args': {'path': u'/srv/www/goltastico.com/current/vendor'}, 'module_args': ''}, 'item': 'vendor', u'stat': {u'exists': False}, u'changed': False})
TASK: [deploy | Check for composer.json in project root or project_subtree_path] ***
<goltastico.com> ESTABLISH CONNECTION FOR USER: root
<goltastico.com> REMOTE_MODULE stat path=/srv/www/goltastico.com/releases/20151229183020/composer.json
<goltastico.com> EXEC ssh -C -tt -vvv -o ForwardAgent=yes -o ControlMaster=auto -o ControlPersist=60s -o ControlPath="/Users/joseph/.ansible/cp/ansible-ssh-%h-%p-%r" -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 goltastico.com /bin/sh -c 'mkdir -p $HOME/.ansible/tmp/ansible-tmp-1451435447.11-216060973139655 && chmod a+rx $HOME/.ansible/tmp/ansible-tmp-1451435447.11-216060973139655 && echo $HOME/.ansible/tmp/ansible-tmp-1451435447.11-216060973139655'
<goltastico.com> PUT /var/folders/qw/s03zm3m10kg7ygwq2gjk2jqc0000gn/T/tmpFzZcn4 TO /root/.ansible/tmp/ansible-tmp-1451435447.11-216060973139655/stat
<goltastico.com> EXEC ssh -C -tt -vvv -o ForwardAgent=yes -o ControlMaster=auto -o ControlPersist=60s -o ControlPath="/Users/joseph/.ansible/cp/ansible-ssh-%h-%p-%r" -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 goltastico.com /bin/sh -c 'LANG=en_US.UTF-8 LC_CTYPE=en_US.UTF-8 /usr/bin/python /root/.ansible/tmp/ansible-tmp-1451435447.11-216060973139655/stat; rm -rf /root/.ansible/tmp/ansible-tmp-1451435447.11-216060973139655/ >/dev/null 2>&1'
ok: [goltastico.com] => {"changed": false, "stat": {"atime": 1451434276.4368849, "checksum": "8dfa62a3e5103e06bcd809965367730a6e36fa5c", "ctime": 1451435441.7971256, "dev": 51713, "exists": true, "gid": 0, "gr_name": "root", "inode": 1051217, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "md5": "afb6d6a83903f0e9a78c919a30d4ab82", "mode": "0644", "mtime": 1451434276.4368849, "nlink": 1, "path": "/srv/www/goltastico.com/releases/20151229183020/composer.json", "pw_name": "root", "rgrp": true, "roth": true, "rusr": true, "size": 1417, "uid": 0, "wgrp": false, "woth": false, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}}
TASK: [deploy | Fail if composer.json not found] ******************************
skipping: [goltastico.com]
TASK: [deploy | Install Composer dependencies] ********************************
<goltastico.com> ESTABLISH CONNECTION FOR USER: root
<goltastico.com> REMOTE_MODULE command chdir=/srv/www/goltastico.com/releases/20151229183020 composer install --no-ansi --no-dev --no-interaction --no-progress --optimize-autoloader --no-scripts
<goltastico.com> EXEC ssh -C -tt -vvv -o ForwardAgent=yes -o ControlMaster=auto -o ControlPersist=60s -o ControlPath="/Users/joseph/.ansible/cp/ansible-ssh-%h-%p-%r" -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 goltastico.com /bin/sh -c 'mkdir -p $HOME/.ansible/tmp/ansible-tmp-1451435449.46-250339614875046 && chmod a+rx $HOME/.ansible/tmp/ansible-tmp-1451435449.46-250339614875046 && echo $HOME/.ansible/tmp/ansible-tmp-1451435449.46-250339614875046'
<goltastico.com> PUT /var/folders/qw/s03zm3m10kg7ygwq2gjk2jqc0000gn/T/tmpVGpqTn TO /root/.ansible/tmp/ansible-tmp-1451435449.46-250339614875046/command
<goltastico.com> EXEC ssh -C -tt -vvv -o ForwardAgent=yes -o ControlMaster=auto -o ControlPersist=60s -o ControlPath="/Users/joseph/.ansible/cp/ansible-ssh-%h-%p-%r" -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 goltastico.com /bin/sh -c 'LANG=en_US.UTF-8 LC_CTYPE=en_US.UTF-8 /usr/bin/python /root/.ansible/tmp/ansible-tmp-1451435449.46-250339614875046/command; rm -rf /root/.ansible/tmp/ansible-tmp-1451435449.46-250339614875046/ >/dev/null 2>&1'
failed: [goltastico.com] => {"cmd": "composer install --no-ansi --no-dev --no-interaction --no-progress --optimize-autoloader --no-scripts", "failed": true, "rc": 2}
msg: [Errno 2] No such file or directory
PLAY RECAP ********************************************************************
to retry, use: --limit @/Users/joseph/deploy.retry
goltastico.com : ok=14 changed=5 unreachable=0 failed=1
localhost : ok=0 changed=0 unreachable=0 failed=0
I have done this:
- ./deploy.sh production goltastico.com caused error which is why I ran the playbook with debug to show here.
- I am on yesterdays version of Trellis
Just a sidenote I am on an rackspace mycloud server and below is my wordpress_sites.yml file:
wordpress_sites:
goltastico.com:
site_hosts:
- goltastico.com
local_path: ../site # path targeting local Bedrock site directory (relative to Ansible root)
repo: git@bitbucket.org:goltastico/goltastico-com.git
branch: master
subtree_path: site # relative path to your Bedrock/WP directory in your repo (above) if it is not the root (like the roots-example-project structure)
permalink_structure: "/%year%/%monthnum%/%day%/%postname%/"