I am trying to copy a few files from a git repository to a remote server. since the changes will be made often to these files, the files are placed in git, and from git, I am trying to copy it to the remote servers.
I am trying something like this, but the git repo I am accessing is a protected one and I have the creds. I would like to know how do I pass on the username and password here. How do I achieve it?
- name: Clone git to a local server
git:
repo: https://github.com/blah/blah.git
dest: /my/laptop/var/tmp/
Once I have those files in the controller server, from there I can copy files to all the remote hosts with the copy module.