-
Notifications
You must be signed in to change notification settings - Fork 24
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
Cant specify parameter: _valid_extensions in ansible.cfg #183
Comments
The |
So this mean its impossible that ansible will automatically decrypt host_vars without the sops.yml-ending? |
Right now, yes, it's impossible. |
#186 makes this configurable. |
Thank you very much for that. ansible.cfg:
If I now create a host_vars/host1.sops.yml with the following content:
And then execute the following playbook:
I receive the following (correct) output:
If I rename the host_vars/host1.sops.yml to host_vars/host1.yml, I get the following (incorrect) output:
So it is not being decrypted correctly, have I overlooked something or is this a bug? Thanks for your help. |
I found the error myself and would like to provide the solution here so that it helps others who also encounter it. The error is in the ansible.cfg, it must look like this:
|
You can also see the syntax when checking out the |
(Also you can remove |
Hello :)
In my ansible inventory i encrypt only some of the variables with the command:
My .sops.yml looks like:
The encryption works fine and as expected, but the decryption is not working.
In ansible i use the community.sops.sops_vars-plugin and my ansible.cfg looks like:
If i understood correctly i can say then community.sops.sops_vars-plugin with the parameter _valid_extensions that it should also read my normal yaml-files. But it does not work.
Thanks for your help, maybe i missunderstood something.
The text was updated successfully, but these errors were encountered: