ansistrano / deploy

Ansible role to deploy scripting applications like PHP, Python, Ruby, etc. in a capistrano style
https://ansistrano.com
MIT License
2.37k stars 343 forks source link

Prevent `{{ ansistrano_deploy_to }}/shared` directory. #362

Closed mishawakerman closed 3 years ago

mishawakerman commented 4 years ago

Was recently investigating unexpectedly high disk usage and found the {{ ansistrano_deploy_to }}/shared dir was using up a considerable amount of space (we deploy from a mono repo and some servers have multiple services, so this contained the code and dependencies for many services not being run). I found that deleting this directory after deploy didn't cause any issues but the fact that it ever exists means we need to keep enough disk capacity headroom to allow for it to exist transiently. Is there a way to prevent this directory from being created as a part of the role?

ricardclau commented 3 years ago

Sorry but there is no way to prevent this. Not sure how much spaces are we talking about but there is probably something else causing this. I am assuming you use the rsync strategy, maybe you are syncing folders you should not or sth similar?