We’re using ansible 1.4.3 with the “local” connection type on our servers. We noticed recently that the inode usage on all our server was climbing steadily, and we’ve tracked it down to ansible leaving empty directories in /.ansible/tmp. The directories themselves are empty, because we have ANSIBLE_KEEP_REMOTE_FILES set to false. But the directories keep accumulating. Shouldn’t ansible also remove the directories it creates, or is there a reason for leaving these directories around?
Anand
Do you have any async tasks?
We have an open ticket to look into this currently for some related bits.
(ANSIBLE_KEEP_REMOTE_FILES for the benefit of others is only a debug setting that people shouldn’t really need to know about)
As far as I can see, we don’t have any async tasks. Everything runs in order, and ansible waits for each task to complete before moving on.
The default for ANSIBLE_KEEP_REMOTE_FILES is true, which is why I had to set it to false for our ansible-managed hosts. With it set to true, not only were the directories being left, but they had files in them too.
Ok, thanks, the ticket is currently open here:
https://github.com/ansible/ansible/issues/5339