ansible / ansible.builtin / v2.5.6 / 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.5.6) — lookup
pip
Install with pip install ansible==2.5.6
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