Hi,
I would like to get some clarification on the intention of update option in git module.
My original understanding:
-
when update=yes, then repo will be cloned once and then updated via git pull every time
-
when update=no, then repo will be cloned once but would never be updated with git pull and it will just return repo information
Which seemed correct until this change https://github.com/ansible/ansible/commit/28f6a18ef6add2f43b0e9a489f5d914f3b882403 which fixed this issue https://github.com/ansible/ansible/issues/8630 .
After the change:
-
when update=yes, the behaviour is still the same as my original understanding
-
when update=no, then the module will never be cloned it will just return repo information. this is the confusing part because ‘update’ by definition indicates updating an already cloned repo. The change also means that it’s no longer possible to clone the repo once only without further updates, which I think would be a common use case.
The documentation on http://docs.ansible.com/git_module.html only mentions “If no, just returns information about the repository without updating.”
Is it the intention that update=no means to never clone?
If so, is there any other way to support clone once and never update?
Cheers,
Cliff.