Improve readability of example. (#1648) (#1649)

(cherry picked from commit 25e246bdc2)

Co-authored-by: Felix Fontein <felix@fontein.de>
pull/1651/head
patchback[bot] 2021-01-19 08:05:57 +00:00 committed by GitHub
parent 199e53112c
commit 7fac03ec56
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 3 deletions

View File

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