community / community.general / 3.8.10 / lookup / keyring grab secrets from the OS keyring Authors: Samuel Boucher (!UNKNOWN) <boucher.samuel.c@gmail.com>community.general.keyring (3.8.10) — lookup
Install with ansible-galaxy collection install community.general:==3.8.10
collections: - name: community.general version: 3.8.10
Allows you to access data stored in the OS provided keyring/keychain.
- name : output secrets to screen (BAD IDEA) ansible.builtin.debug: msg: "Password: {{item}}" with_community.general.keyring: - 'servicename username'
- name: access mysql with password from keyring mysql_db: login_password={{lookup('community.general.keyring','mysql joe')}} login_user=joe
_raw: description: Secrets stored. elements: str type: list