-
Notifications
You must be signed in to change notification settings - Fork 11
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
Problem connection via a host.yml file #4
Comments
After a litte investigation I found this : When I export the variables before I execute my command, it works :
It seems that when I only put those variables in my invetory file, the sshwrapper.py does not gather them but my ansible-inventory command gives me the bastion_host and user and port :
|
there is the same issue when the variables are on the |
I read the export BASTION_ANSIBLE_INV_OPTIONS='-i <path_to_custom_inventory_file>' It's better to update README.md and mention this special use case of |
hi mhdan I have the same issue but i haven't undestood your answer. bastion_user: MYUSER ansible_ssh_transfer_method: scp ansible_scp_if_ssh: True Could you help me please ? |
Hi LucJubeau it would be best if you only exported the path of your custom inventory same as below: export BASTION_ANSIBLE_INV_OPTIONS='-i <path_to_custom_inventory_file>' then run your ansible with the standard procedure explained in README with bastion. |
Thanks a lot mhdan. That's worked. |
Hi,
This is my problem :
I have this host file :
I have also put the ansible_* vars in my .ansible.cfg this does not work.
The problem is that when I'm trying to ping via the host file it gives me this error :
Via the command :
ansible all -i host.yml -m ping -vvvvvvvv
But the ansible-inventory command print me my host.yml file with the right variables.
Thanks
The text was updated successfully, but these errors were encountered: