Avoid typing the credentials for ansible-pull all the time

Hello,

in order to automate the pull request via ansible-pull, I need to have some credentials stored somewhere for ansible.
The Repository is just reachable via HTTPS. Therefore Username and Password is needed.
But after each ansible-pull I need to re-type the username and passwort again.

Has anybody any idea how to solve this and to automate this?
Thanks.

One way would be to use read-only ssh keys and ssh instead of HTTPS access to your repo. Just copy the key onto your newly created machine as part of the bootstrap process.

kind regards
Pshem

What in case there are restrictions? For example Firewall rules to the GIT Target-Server? What when we would like to use certificates via HTTPS?
So HTTPS is supported and it is working. But there must be any way to configure that in order to automate the process.

What can be done to operate this with the standard way via HTTPS?
Thanks.

If you use HTTPS you have to follow the basic auth scheme and supply the username and password. I have not tried this, but you might be able to add the username and password like this to the URL:

https://user:password@github.com/ansible/ansible.git

kind regards
Pshem