mitogen/tests/ansible/integration/playbook_semantics/environment.yml

14 lines
306 B
YAML
Raw Normal View History

2018-02-27 19:57:37 +00:00
# Ensure environment: is preserved during call.
- name: integration/playbook_semantics/environment.yml
hosts: test-targets
any_errors_fatal: true
2018-02-27 19:57:37 +00:00
tasks:
- shell: echo $SOME_ENV
environment:
SOME_ENV: 123
register: result
- assert:
that: "result.stdout == '123'"