community / community.general / 6.6.8 / lookup / keyring grab secrets from the OS keyring Authors: Samuel Boucher (!UNKNOWN) <boucher.samuel.c@gmail.com>community.general.keyring (6.6.8) — lookup
Install with ansible-galaxy collection install community.general:==6.6.8
collections: - name: community.general version: 6.6.8
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