How to copy latest git files to a remote host using playbook , do I need to give the git creds upfront?

Hi All,

How to copy latest git files to a remote host using playbook , do I need to give the git creds upfront?

Thanks in advance