community / community.general / 2.5.9 / lookup / shelvefile read keys from Python shelve file Authors: Alejandro Guirao (!UNKNOWN) <lekumberri@gmail.com>community.general.shelvefile (2.5.9) — lookup
Install with ansible-galaxy collection install community.general:==2.5.9
collections: - name: community.general version: 2.5.9
Read keys from Python shelve file.
- name: retrieve a string value corresponding to a key inside a Python shelve file ansible.builtin.debug: msg="{{ lookup('community.general.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) elements: str type: list