There was already a feature request for this, but it was closed without a solution and explanation. We still require this (basic) feature.
Storing Generated Secrets in Bitwarden with Ansible Using Machine Account - Feature Requests / Secrets Manager - Bitwarden Community Forums
When provisioning any device, server or software with ansible it is common to have to set up a password for something. Ansible can easily generate secure passwords with the ansible.builtin.passwords lookup but these secrets then have to be stored in Bitwarden Secrets Manager for safekeeping or reuse in the next playbook run.
Currently the ansible collection bitwarden.secrets offers only a lookup plugin, there is no way to create a new secret even though machine accounts can be granted read+write access to projects.
The post made in the earlier, closed feature request that suggested to use the bw cli is silly - bw is the CLI for Bitwarden Password Vault, a completely separate product and environment from Bitwarden Secrets Manager. This suggestion does not solve the problem at all. Furthermore, shelling out to a CLI tool is not a viable option for use in ansible. The bws CLI does not run on Alpine Linux and safely templating its arguments and parsing its output is difficult when an ansible-native collection is advertised and exists already.