mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Fix up examples in the assert docs to match the way things work.
This commit is contained in:
parent
9c18b1a785
commit
90655cb7b0
1 changed files with 7 additions and 2 deletions
|
@ -29,11 +29,16 @@ options:
|
||||||
that:
|
that:
|
||||||
description:
|
description:
|
||||||
- "A string expression of the same form that can be passed to the 'when' statement"
|
- "A string expression of the same form that can be passed to the 'when' statement"
|
||||||
|
- "Alternatively, a list of string expressions"
|
||||||
required: true
|
required: true
|
||||||
author: Michael DeHaan
|
author: Michael DeHaan
|
||||||
'''
|
'''
|
||||||
|
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
- assert: ansible_os_family != "RedHat"
|
- assert: { that: "ansible_os_family != 'RedHat'" }
|
||||||
- assert: "'foo' in some_command_result.stdout"
|
|
||||||
|
- assert:
|
||||||
|
that:
|
||||||
|
- "'foo' in some_command_result.stdout"
|
||||||
|
- "number_of_the_counting == 3"
|
||||||
'''
|
'''
|
||||||
|
|
Loading…
Reference in a new issue