mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Removing colon from example failure message
The example failure message was given as - fail: msg="Bailing out: this play requires 'bar'" The colon in the example causes a YAML compile error, so I am replacing it with a '.'
This commit is contained in:
parent
2a46022bc7
commit
5fce765601
1 changed files with 1 additions and 1 deletions
|
@ -82,7 +82,7 @@ If a required variable has not been set, you can skip or fail using Jinja2's
|
|||
- shell: echo "I've got '{{ foo }}' and am not afraid to use it!"
|
||||
when: foo is defined
|
||||
|
||||
- fail: msg="Bailing out: this play requires 'bar'"
|
||||
- fail: msg="Bailing out. this play requires 'bar'"
|
||||
when: bar is not defined
|
||||
|
||||
This is especially useful in combination with the conditional import of vars
|
||||
|
|
Loading…
Reference in a new issue