ansible / ansible.builtin / v2.9.27 / lookup / keyring grab secrets from the OS keyring | "added in version" 2.3 of ansible.builtin" Authors: Samuel Boucher <boucher.samuel.c@gmail.com>ansible.builtin.keyring (v2.9.27) — lookup
pip
Install with pip install ansible==2.9.27
Allows you to access data stored in the OS provided keyring/keychain.
- name : output secrets to screen (BAD IDEA) debug: msg: "Password: {{item}}" with_keyring: - 'servicename username'
- name: access mysql with password from keyring mysql_db: login_password={{lookup('keyring','mysql joe')}} login_user=joe
_raw: description: secrets stored