community.general.keyring (0.2.1) — lookup

grab secrets from the OS keyring

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

Install collection

Install with ansible-galaxy collection install community.general:==0.2.1


Add to requirements.yml

  collections:
    - name: community.general
      version: 0.2.1

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