ansible.builtin.keyring (v2.9.27) — lookup

grab secrets from the OS keyring

| "added in version" 2.3 of ansible.builtin"

Authors: Samuel Boucher <boucher.samuel.c@gmail.com>

Install Ansible via pip

Install with pip install ansible==2.9.27

Description

Allows you to access data stored in the OS provided keyring/keychain.


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name : output secrets to screen (BAD IDEA)
  debug:
    msg: "Password: {{item}}"
  with_keyring:
    - 'servicename username'
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: access mysql with password from keyring
  mysql_db: login_password={{lookup('keyring','mysql joe')}} login_user=joe

Outputs

_raw:
  description: secrets stored