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

File '...REVISION' created with default permissions '600' warning #361

Closed jahsome closed 3 years ago

jahsome commented 4 years ago

Recently, this warning began popping up with my ansistrano deployments:

2020-09-01T15:33:41.2468706Z ##[error]Bash wrote one or more lines to the standard error stream.
2020-09-01T15:33:41.2489241Z ##[error][WARNING]: File
'/path/to/project/releases/Release-559.1/REVISION'
created with default permissions '600'. The previous default was '666'. Specify
'mode' to avoid this warning.

As far as I am aware, nothing has changed in the build environment, so I'm not quite sure why the warnings started appearing.

Forgive my ignorance, but is this an issue with ansistrano or the underlying copy job here? Any suggestions on how I can resolve/silence this to prevent this warning would be greatly appreciated!

jahsome commented 4 years ago

A little further digging yielded this thread: https://github.com/ansible/ansible/issues/67794#issuecomment-672921617 where it seems like it will be "fixed" in a future release of Ansible. In the meantime is there something that can be done on the ansistrano side to silence this warning?

ricardclau commented 3 years ago

We cannot set any mode since, as it is stated in the ansible issue thread, ansible should create files with the same mode as the folder these files are created in

Will leave this open in the meantime but we are probably not going to do anything as this is an Ansible bug IMHO