1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Update tss.py - multiline for an example (#1639)

* Update tss.py - multiline for an example 

Extended line runs past the side of the browser window

* Moved multiline to after the msg. 

Cannot believe I missed that again.

* Updated tss.py

Using > as multiline joiner with spaces
This commit is contained in:
Joe Louthan 2021-01-19 00:00:14 -06:00 committed by Felix Fontein
parent 74174f11ff
commit 7d20ff7cac

View file

@ -75,7 +75,11 @@ EXAMPLES = r"""
vars:
secret: "{{ lookup('community.general.tss', 1) }}"
tasks:
- ansible.builtin.debug: msg="the password is {{ (secret['items'] | items2dict(key_name='slug', value_name='itemValue'))['password'] }}"
- ansible.builtin.debug:
msg: >
the password is {{(secret['items']
| items2dict(key_name='slug',
value_name='itemValue'))['password']}}
"""
from ansible.errors import AnsibleError, AnsibleOptionsError