MC> We have the need to run ansible from cron as root (to ensure the MC> 'ansible' user exists on all remote hosts and its key is present in MC> authorized_keys) as well as the the 'ansible' user. MC> MC> The problem is that when root sources ./hacking/env-setup, the MC> directory lib/ansible.egg-info/ becomes owned by root and the ansible MC> user can no longer run the ./hacking/env-setup without getting MC> permission errors.
I posted about this too: https://groups.google.com/forum/#!topic/ansible-project/0Il-9M0iyPE I had said In our particular case, we don't think we care if pkg_resources knows about our off-in-a-corner-somewhere Ansible installation, and this would work fine for us if the 'rm -r' were an 'rm -rf' instead. (It'd fail, and we wouldn't ever know or care.) We made this change in our local installation; if this behavior hasn't changed in 2.0, I'll make a PR then. -Josh ([email protected]) This email is intended for the person(s) to whom it is addressed and may contain information that is PRIVILEGED or CONFIDENTIAL. Any unauthorized use, distribution, copying, or disclosure by any person other than the addressee(s) is strictly prohibited. If you have received this email in error, please notify the sender immediately by return email and delete the message and any attachments from your system. -- 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 [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/22071.31915.77724.281156%40gargle.gargle.HOWL. For more options, visit https://groups.google.com/d/optout.
