community / community.general / 8.5.0 / lookup / keyring grab secrets from the OS keyring Authors: Samuel Boucher (!UNKNOWN) <boucher.samuel.c@gmail.com>community.general.keyring (8.5.0) — lookup
Install with ansible-galaxy collection install community.general:==8.5.0
collections: - name: community.general version: 8.5.0
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 community.mysql.mysql_db: login_password: "{{ lookup('community.general.keyring', 'mysql joe') }}" login_user: joe
_raw: description: Secrets stored. elements: str type: list