ansible-onepasswordconnect-collection
ansible-onepasswordconnect-collection copied to clipboard
Retrieve Files attached to Items
Summary
Add support for retrieving files attached to items. Connect's API supports downloading an attached file, and we try to keep feature parity across all Connect integrations.
Use cases
- Downloading certificates stored in 1Password, for example. Maybe I store them as files instead of plain text notes.
We welcome further use cases in the comments.
Proposed solution
Adding a new module to retrieve the file seems like the most appropriate solution. Something like connect.download_file
, maybe. Some research into how other Ansible modules approach file retrieval (e.g. from S3) would be helpful.
Is there a workaround to accomplish this today?
No, it is not possible for the Connect collection to access files attached to items right now.
References & Prior Work
TODO
- [ ] Review how other Ansible modules approach file downloads (e.g. the AWS S3 module)
- [ ] Develop module definition and configuration options