Beware: apt_key does not respect apt proxy settings
mohclips opened this issue · 2 comments
mohclips commented
Not really a bug with this code, but more a gotcha.
https://github.com/geerlingguy/ansible-role-elasticsearch/blob/master/tasks/setup-Debian.yml#L8
You will need to do something like this...
- role: geerlingguy.elasticsearch
environment:
# required as the apt_key module doesnt use the apt proxy settings, Doh!!
http_proxy: "http://{{ proxy_ip }}:{{ proxy_port }}/"
https_proxy: "http://{{ proxy_ip }}:{{ proxy_port }}/" # HTTPS URI not supported by ansible
stale commented
This issue has been marked 'stale' due to lack of recent activity. If there is no further activity, the issue will be closed in another 30 days. Thank you for your contribution!
Please read this blog post to see the reasons why I mark issues as stale.
mohclips commented
Read your blog post the other day.
Happy to have this closed.