mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
added test emulating #23180 use case
This commit is contained in:
parent
df5895e585
commit
8382ed7200
1 changed files with 10 additions and 0 deletions
|
@ -2,7 +2,17 @@
|
|||
vars:
|
||||
- test1:
|
||||
key1: val1
|
||||
environment:
|
||||
PATH: '{{ansible_env.PATH + ":/lola"}}'
|
||||
lola: 'ido'
|
||||
tasks:
|
||||
- name: ensure special case with ansible_env is skipped but others still work
|
||||
assert:
|
||||
that:
|
||||
- lookup('env', 'PATH') == ansible_env.PATH
|
||||
- "'/lola' not in ansible_env.PATH"
|
||||
- ansible_env.lola == 'ido'
|
||||
|
||||
- name: check that envvar does not exist
|
||||
shell: echo $key1
|
||||
register: test_env
|
||||
|
|
Loading…
Reference in a new issue