mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 05:12:45 +00:00
Fix up examples in the assert docs to match the way things work.
This commit is contained in:
@@ -29,11 +29,16 @@ options:
|
||||
that:
|
||||
description:
|
||||
- "A string expression of the same form that can be passed to the 'when' statement"
|
||||
- "Alternatively, a list of string expressions"
|
||||
required: true
|
||||
author: Michael DeHaan
|
||||
'''
|
||||
|
||||
EXAMPLES = '''
|
||||
- assert: ansible_os_family != "RedHat"
|
||||
- assert: "'foo' in some_command_result.stdout"
|
||||
- assert: { that: "ansible_os_family != 'RedHat'" }
|
||||
|
||||
- assert:
|
||||
that:
|
||||
- "'foo' in some_command_result.stdout"
|
||||
- "number_of_the_counting == 3"
|
||||
'''
|
||||
|
||||
Reference in New Issue
Block a user