Ansible lookup plugin for pass (password-store).
Using python's check_output
this plugin will retrieve variable values using
the pass prompt. Useful if you already store your passwords using pass.
Alternative: Ansible Vault
- hosts: all
vars:
test_var: "{{lookup('pass', 'path/to/password')}}"
tasks:
- debug: msg="{{test_var}}"