You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a partition that is encrypted using a randomly generated keyfile, which I store in a vault. I'm trying to write a playbook that opens the encrypted partition using the keyfile without uploading the keyfile to the managed node. Note that running
cat keyfile | ssh -p 2222 root@localhost cryptsetup open --key-file - /dev/vda3 data
works (where keyfile is the unencrypted keyfile).
Using ansible.builtin.command and ansible.builtin.shell also doesn't work (see ansible/ansible#84497)
Ansible does not allow binary data to be passed to or from modules. That's a limitation of Ansible, not of this module. Therefore this is not a bug.
What's possible is to add an option that tells the module that passphrases are provided in Base64 and have to be decoded before being used. That way you can pass Base64-encoded binary passphrases to the module.
What's possible is to add an option that tells the module that passphrases are provided in Base64 and have to be decoded before being used. That way you can pass Base64-encoded binary passphrases to the module.
SUMMARY
I have a partition that is encrypted using a randomly generated keyfile, which I store in a vault. I'm trying to write a playbook that opens the encrypted partition using the keyfile without uploading the keyfile to the managed node. Note that running
works (where keyfile is the unencrypted keyfile).
Using
ansible.builtin.command
andansible.builtin.shell
also doesn't work (see ansible/ansible#84497)ISSUE TYPE
COMPONENT NAME
luks_device
ANSIBLE VERSION
COLLECTION VERSION
CONFIGURATION
OS / ENVIRONMENT
Control: Arch Linux
Managed node: Debian 12
STEPS TO REPRODUCE
EXPECTED RESULTS
The encrypted partition is unlocked.
ACTUAL RESULTS
I've also tried reverting ansible/ansible@d0fda3e with the same result.
The text was updated successfully, but these errors were encountered: