extra checking

22 views
Skip to first unread message

Michael Leer

unread,
Jul 24, 2015, 9:16:21 AM7/24/15
to Ansible Project
Hello,

I recently came across an issue that a user was having where the /var/log/ansible.log file was not writable, would it be benefical to check the log files permissions (if specified within the config) when starting Ansible?

Mike

Brian Coca

unread,
Jul 24, 2015, 10:28:11 AM7/24/15
to Ansible Project
already in there:

if (os.path.exists(path) and not os.access(path, os.W_OK)) and not
os.access(os.path.dirname(path), os.W_OK):
> --
> You received this message because you are subscribed to the Google Groups
> "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to ansible-proje...@googlegroups.com.
> To post to this group, send email to ansible...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/0ff6f3d7-acf6-47bd-a02a-8fc0a420fd20%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.



--
Brian Coca
Reply all
Reply to author
Forward
0 new messages