-
-
Notifications
You must be signed in to change notification settings - Fork 5
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
read ansible.cfg from project/current directory #302
Comments
Adding my idea:
Beware. I have no idea on the correct IJ-APIs to use, but this solution works for me. Open:
Andreas |
working on pull request #304 on it |
In our company we use to have all ansible files under subdirectory, this PR can support this?
|
not currently, only if the vaulted files are also in that directory. how will ansible-playbook find these files when called? |
Simply we have a Makefile with a target like this:
or simple cd and execute the playbook |
Ah, ANSIBLE_CONFIG environment variable. I think this is already supported. just place vault_password_file property in the ansible.cfg or set a second environment variable ANSIBLE_VAULT_PASSWORD_FILE to the password file path. |
How to configure IDEA with ANSIBLE_CONFIG? I don't know. |
Hi 👋! You can set an environment variable on the system level, like for the default tool. |
@foto-andreas, thanks for the issue. I really forgot about that to-do. I'm trying to stick with the default locations from Ansible documentation, but even complex setups supported using a password file with a script, where we can do literally anything. |
Yes and no... Because I need to set multiple time environment variable (that is global) once for each project I open, and sometimes I open 2 to 4 projects, at same time, all with ansible inside (and a lot of other things), and sometimes ansible.cfg files are under a path or sometimes under some "funky" path. And cherry on the cacke, each project has a different vault password file. What do you think? |
Hi,
is this only a forgotten TODO or did you encounter problems implementing the usage of ansible.config in current directory?
Andreas
The text was updated successfully, but these errors were encountered: