This would enable people to specify how long the local cache version of a repo is valid for (default would be 0 meaning things are always pulled from the remote).
This would mean that if the version: was set to a branch or tag name (or maybe even a hash) we would only look at checking out the most recent version in the local repo, unless the cache time was invalid.
This would drastically speed up / give the options to speed up ansible playbooks that have a lot of git module / repo usage.
--
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/962ac9d6-26ec-4974-8db2-66fadd182eb1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To me this is git native, especially when tracking branches.
We could rename cache_valid_time to only_update_git_every_x it it feels better.So when tracking a branch in git I don't to a git pull / update everytime I want to work on a branch, I will, for example do it daily, or even weekly.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/ae1bb30d-3976-4791-9be9-6852400e0323%40googlegroups.com.