community / community.general / 0.2.1 / lookup / shelvefile read keys from Python shelve file Authors: Alejandro Guirao <lekumberri@gmail.com>community.general.shelvefile (0.2.1) — lookup
Install with ansible-galaxy collection install community.general:==0.2.1
collections: - name: community.general version: 0.2.1
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)