Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ansible_httpapi_use_proxy: false to the generated ansible inventory #1569

Closed
hellt opened this issue Aug 31, 2023 · 2 comments
Closed

Add ansible_httpapi_use_proxy: false to the generated ansible inventory #1569

hellt opened this issue Aug 31, 2023 · 2 comments
Labels
enhancement New feature or request fix available

Comments

@hellt
Copy link
Member

hellt commented Aug 31, 2023

Since clab generated inventory assumes that the HTTP client that uses it resides on the same host, we have to add ansible_httpapi_use_proxy: false variable to the inventory to make sure we instruct the module to not attempt using global proxy if it is configured.

A comment should be added next to this var explaining this.

@hellt hellt added the enhancement New feature or request label Aug 31, 2023
@steiler
Copy link
Collaborator

steiler commented Sep 1, 2023

is this what you would expect?
Like vars under all or should it be different?

all:
  vars:
    # The generated inventory is assumed to be used from the clab host.
    # Hence no http proxy should be used. Therefore we make sure the http 
    # module does not attempt using any global http proxy.
    ansible_httpapi_use_proxy: false
  children:
    linux:
      hosts:
        clab-host-link-l1:
          ansible_host: 172.20.20.2

@hellt
Copy link
Member Author

hellt commented Sep 1, 2023

yes, thanks

@hellt hellt closed this as completed Sep 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request fix available
Projects
None yet
Development

No branches or pull requests

2 participants