on-internet
← Community

Ansible playbook to copy files from git repo to remote server

Stack Overflow ·

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

Comments

Sign in or sign up to comment and upvote.

No comments yet.