diff --git a/plugins/lookup/tss.py b/plugins/lookup/tss.py index f24d79373a..2c25532699 100644 --- a/plugins/lookup/tss.py +++ b/plugins/lookup/tss.py @@ -82,6 +82,27 @@ EXAMPLES = r""" | items2dict(key_name='slug', value_name='itemValue'))['password'] }} + +- hosts: localhost + vars: + secret: >- + {{ + lookup( + 'community.general.tss', + 102, + base_url='https://secretserver.domain.com/SecretServer/', + username='user.name', + password='password' + ) + }} + tasks: + - ansible.builtin.debug: + msg: > + the password is {{ + (secret['items'] + | items2dict(key_name='slug', + value_name='itemValue'))['password'] + }} """ from ansible.errors import AnsibleError, AnsibleOptionsError