Skip to content

Artifactory auth working when configured but not working in galaxy request #141

Answered by onefourfive
onefourfive asked this question in Q&A
Discussion options

You must be logged in to vote

Answering my own question here-- this an open bug in ansible since (at least) 2.15! ansible/ansible#81698

For a token to even be included in the request to a private / custom Galaxy server, it must be specified in ansible.cfg explicitly.

Working:

[galaxy]
server_list = local

[galaxy_server.local]
url = "http://galaxy.demo.org:8088/"
token = WholeTokenExplicitlyHere
ansible-galaxy collection publish collection-ver.tgz

Not working:

  • Using token_path in ansible.cfg in any case, even with --token on commandline

In this case no token is provided and the Authorization header is never sent.

Replies: 2 comments 10 replies

Comment options

You must be logged in to vote
9 replies
@onefourfive
Comment options

@briantist
Comment options

@onefourfive
Comment options

@briantist
Comment options

@onefourfive
Comment options

Comment options

You must be logged in to vote
1 reply
@briantist
Comment options

Answer selected by onefourfive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants