You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
271 B
YAML
15 lines
271 B
YAML
7 years ago
|
# Ensure environment: is preserved during call.
|
||
|
|
||
|
- hosts: all
|
||
7 years ago
|
any_errors_fatal: true
|
||
7 years ago
|
tasks:
|
||
|
- shell: echo $SOME_ENV
|
||
|
environment:
|
||
|
SOME_ENV: 123
|
||
|
register: result
|
||
|
|
||
|
- debug: msg={{result}}
|
||
|
|
||
|
- assert:
|
||
|
that: "result.stdout == '123'"
|