Running role for the first time generates an error.
Closed this issue · 9 comments
When running the following command:
ansible-playbook -l test -i inventory.ini -e "symfony2_project_release=1" deploy.yml -vvv
I get this error:
msg: refusing to convert between directory and link for /var/www/vhosts/exampl/releases/1/app/logs
I have confirmed that the folder exists in the repo and the only file in the folder is a ".gitkeep" file.
is logs a symlink? where is it linked to/from?
No.It is not a symlink. I literally have a blank digital ocean droplet and I am just testing your tool. No other commands were run.
I checked and it seems as if #5 the folder did not exist. In my case the folder does exist, however the symlink is not happening. Also, different error message. 😄
I can confirm this error, i am seeing msg: refusing to convert between directory and link for var/www/releases/1/app/logs
I am unsure of a solution at the moment. Adding force=yes
doesn't work either, thinking another action might be needed.
Hey guys, if you are interested I've posted a workaround which worked for me at #5
@trepafi Thanks for posting the workaround. I will look into taking this fact into consideration.
Can confirm that removing the app/logs and app/cache folders from the repo works. This is however not ideal. Thanks for fix though @trepafi