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