ansible / ansible.builtin / v2.9.27 / lookup / shelvefile read keys from Python shelve file | "added in version" 2.0 of ansible.builtin" Authors: Alejandro Guirao <lekumberri@gmail.com>ansible.builtin.shelvefile (v2.9.27) — lookup
pip
Install with pip install ansible==2.9.27
Read keys from Python shelve file.
- name: retrieve a string value corresponding to a key inside a Python shelve file debug: msg="{{ lookup('shelvefile', 'file=path_to_some_shelve_file.db key=key_to_retrieve') }}
key: description: key to query required: true file: description: path to shelve file required: true _terms: description: sets of key value pairs of parameters
_list: description: value(s) of key(s) in shelve file(s)