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.
17 lines
368 B
YAML
17 lines
368 B
YAML
# Ensure environment: is preserved during call.
|
|
|
|
- name: integration/playbook_semantics/environment.yml
|
|
hosts: test-targets
|
|
any_errors_fatal: true
|
|
tasks:
|
|
- shell: echo $SOME_ENV
|
|
environment:
|
|
SOME_ENV: 123
|
|
register: result
|
|
|
|
- assert:
|
|
that: "result.stdout == '123'"
|
|
fail_msg: result={{result}}
|
|
tags:
|
|
- environment
|