-
Notifications
You must be signed in to change notification settings - Fork 20
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
If .sops.yaml
contains a path_regex
sops_encrypt doesn't work
#153
Comments
Actually this looks might be related #104 |
For now I added a tasks to rename the sops configuration file, use sops_encrypt and then restore the sops configuration file. I wonder if there is a more elegant way to solve this though? |
It is exactly #104: I hope that with the new maintainers of sops we now have a chance to get this fixed (i.e. something implemented that helps to work around this). |
LOL, I just realized I managed to overlook that you are one of the new maintainers :D Sorry for that. |
You should be able to reproduce this when changing directory to While using |
No problem :D glad to see you are also helping out there as well! I'll rename this issue and hopefully we can get a fix for it once upstream adds support for the issue you linked. |
--config
).sops.yaml
contains a path_regex
this module doesn't work
.sops.yaml
contains a path_regex
this module doesn't work.sops.yaml
contains a path_regex
sops_encrypt doesn't work
I'm not sure if this is exactly a good idea, but I just made a new Thanks for creating this ticket btw, i just spent a couple of hours trying figure out why it worked just fine on the command line but not in ansible. It was a couple rounds of google before i landed here.. |
@clearlybaffled that works, not sure why I didn't think of that. Thanks for the tip! |
I've started with getsops/sops#1332, which allows to fix this. |
Hi ππΌ
I am trying to use this module but it doesn't work when I have a
.sops.yaml
configuration file present. If I remove the.sops.yaml
config file my task works.env
sops configuration file
example task
ansible logs
It would be nice if we could unset config_path from always being present as I have confirmed that without this present I can encrypt. However maybe there is something else going on?
The text was updated successfully, but these errors were encountered: