Deploy failed at TASK [deploy : Move project subtree into root folder]

I have an oldish clone of Trellis that was previously working fine. Now deploys fail at

TASK [deploy : Move project subtree into root folder]

The output looks like:

TASK [deploy : Move project subtree into root folder] **************************
fatal: [xxx.xxx.xx.xx]: FAILED! => {"changed": true, "cmd": "mv /srv/www/test.com/releases/20160202092207/False/* /srv/www/test.com/releases/20160202092207", "delta": "0:00:00.004631", "end": "2016-02-02 09:22:20.182529", "failed": true, "rc": 1, "start": "2016-02-02 09:22:20.177898", "stderr": "mv: cannot stat ‘/srv/www/test.com/releases/20160202092207/False/*’: No such file or directory", "stdout": "", "stdout_lines": [], "warnings": []}

I can see that ‘False/*’ is being appended to the path.

Not sure what’s changed and why this has happened.

Is it a case of trying a fresh clone of trellis?

Just reading up on Ansible Vault now.

Did you update your Ansible version?

I’ve actually done some updates to that subtree stuff to make it work better. You can see the diff here: https://github.com/roots/trellis/pull/463/files

(sorry there’s other changes in there as well but look for project_subtree_path.

Yes, updated to:

2.0.0.2-1ppa~trusty

On 14th January but this is the first time I’ve tried it.

Reverted back to the Ansible version (1.5.4+dfsg-1) in the Ubuntu Universe repo for 14.04 and deploys are working again.

The official Ansible Ubuntu PPA is at version 2.0.0.2-1ppa~trusty which contains this bug.

I’ll be sure to check github before posting here next time :slightly_smiling:, thanks!