f5networks / f5networks.f5_modules / 1.28.0 / lookup / license_hopper Return random license from list | "added in version" 1.0.0 of f5networks.f5_modules" Authors: Tim Rupp (@caphrim007)f5networks.f5_modules.license_hopper (1.28.0) — lookup
Install with ansible-galaxy collection install f5networks.f5_modules:==1.28.0
collections: - name: f5networks.f5_modules version: 1.28.0
Select a random license key from a file and remove it from future lookups.
Can optionally remove the key if C(remove=True) is specified.
- name: Get a regkey license from a stash without deleting it bigiq_regkey_license: key: "{{ lookup('license_hopper', 'filename=/path/to/licenses.txt') }}" state: present pool: regkey1
- name: Get a regkey license from a stash and delete the key from the file bigiq_regkey_license: key: "{{ lookup('license_hopper', 'filename=/path/to/licenses.txt', remove=True) }}" state: present pool: regkey1
_raw: description: - random item