ansible: support environment: too.
parent
f74a56daf3
commit
7080751f13
@ -0,0 +1,17 @@
|
||||
---
|
||||
# Ensure environment: is preserved during call.
|
||||
|
||||
- hosts: all
|
||||
gather_facts: false
|
||||
tasks:
|
||||
|
||||
- shell: echo $SOME_ENV
|
||||
environment:
|
||||
SOME_ENV: 123
|
||||
register: result
|
||||
|
||||
- debug: msg={{result}}
|
||||
|
||||
- assert:
|
||||
that: "result.stdout == '123'"
|
||||
|
Loading…
Reference in New Issue