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 (
j...@care.com)
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.