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

Plugin does not suppport lookup of properties/attributes with several lines #28

Closed
lfvjimisola opened this issue Aug 4, 2022 · 5 comments

Comments

@lfvjimisola
Copy link

lfvjimisola commented Aug 4, 2022

The lookup of a property with several (multi) lines is an empty string.

It works with pykeepass in interpreter.

@viczem viczem closed this as completed in f7dbfab Aug 5, 2022
@lfvjimisola
Copy link
Author

Thank you for the fast reply and fix!

May I ask if there are any plans of supporting attachments? That it, save an attachment in KeePass to disk.

Understand that it quite certainly can't be part of the lookup but maybe as a task (own module)?
With the ansible-galaxy fix it might not be to much work?

@viczem
Copy link
Owner

viczem commented Aug 5, 2022

I think it is simply to add a possibility for reading attachments to variables. But what use case?
We can continue to discuss it by email

@lfvjimisola
Copy link
Author

I think it is simply to add a possibility for reading attachments to variables. But what use case? We can continue to discuss it by email

The problem is when the file in binary and also how large can variables be?

Email or that we create another issue?

@viczem
Copy link
Owner

viczem commented Aug 5, 2022

Variables are stored a data in memory, therefore should be dependent on RAM.

Perhaps I do not fully understand your idea, I can assume that you want to have an encrypted binary file. You can encrypt a file with standard Ansible tools and decrypt it when you need - https://docs.ansible.com/ansible/latest/user_guide/vault.html#using-encrypted-variables-and-files.

I've never done this before, I hope this helps you

@lfvjimisola
Copy link
Author

Yes, in theory unless Ansible has made any restrictions themselves. But, I haven't found any (link).

That said, I've written a module for writing attachments to file system (see #29)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants