Skip to content

http_proxy doesn't seem to work #519

Closed Answered by sshnaidm
metasikander asked this question in Q&A
Discussion options

You must be logged in to vote

Do you use gather_facts: true?
This worked for me:

- hosts: localhost
  gather_facts: true
  vars:
    proxy_env:
      http_proxy: http://proxy.localproxy.com:8000
      https_proxy: http://proxy.localproxy.com:8000

  tasks:
    - name: pull
      containers.podman.podman_image:
        name: alpine:3.3
      environment: "{{ proxy_env }}"

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
3 replies
@metasikander
Comment options

@metasikander
Comment options

@metasikander
Comment options

Comment options

You must be logged in to vote
3 replies
@metasikander
Comment options

@sshnaidm
Comment options

@metasikander
Comment options

Answer selected by metasikander
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