diodonfrost / ansible-role-puppet-agent

Ansible role for manage puppet-agent on a large number of os
Apache License 2.0
5 stars 9 forks source link

Switch to get_url to dodge proxy issue with apy_key. #5

Closed jadestorm closed 3 years ago

jadestorm commented 3 years ago

Hi there! We have some Ubuntu machines behind a proxy and the apt_key call does not work behind one. This is apparently a long known issue with ansible and there's a lot of discussion (almost arguing) about it. While there are some indications that it is fixed in a 'soon' release of ansible, it definitely does not appear to be in the very latest per my testing.

A suggested workaround was to use locate inside a data param instead of the url param, which does respect your proxy settings.

Here are some interesting references from my research if you are interested in taking a look:

This seems to be a solid workaround and is functioning well in my testing.

diodonfrost commented 3 years ago

Thanks for your input, would have never thought of this.

diodonfrost commented 3 years ago

Thanks !