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

Module luks_device: adding a key not possible on other Linux locales #385

Closed
liglury-jr opened this issue Jan 20, 2022 · 2 comments · Fixed by #388
Closed

Module luks_device: adding a key not possible on other Linux locales #385

liglury-jr opened this issue Jan 20, 2022 · 2 comments · Fixed by #388
Labels
bug Something isn't working

Comments

@liglury-jr
Copy link

if 'No key available with this passphrase' in result[output]:

Adding a new key (new_keyfile) does not work on other locales!

When adding a new key to luks the stdout of --test-passphrase is evaluated only in english. See line number above.
This leads to an error an no key is added.

Example:
name: Add new key to the LUKS container (container has to exist)
community.crypto.luks_device:
device: "/dev/loop0"
keyfile: "/vault/keyfile"
new_keyfile: "/vault/keyfile2"

@liglury-jr liglury-jr changed the title Modukle luks_device. Adding a key Modukle luks_device. Adding a key not possible on other Linux locales Jan 20, 2022
@liglury-jr liglury-jr changed the title Modukle luks_device. Adding a key not possible on other Linux locales Module luks_device: adding a key not possible on other Linux locales Jan 20, 2022
@felixfontein
Copy link
Contributor

Thanks for reporting this! It could be that doing something like https://github.com/ansible-collections/community.general/blob/main/plugins/modules/packaging/os/homebrew_cask.py#L830 (for example in

) does the trick.

@felixfontein
Copy link
Contributor

I implemented that in #388.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
2 participants