mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 22:02:50 +00:00
More test fixes for split controller/remote tests.
This commit is contained in:
@@ -1,3 +1,10 @@
|
||||
- hosts: testhost
|
||||
gather_facts: no
|
||||
tasks:
|
||||
- name: get PATH from target
|
||||
command: echo $PATH
|
||||
register: target_path
|
||||
|
||||
- hosts: testhost
|
||||
vars:
|
||||
- test1:
|
||||
@@ -9,7 +16,7 @@
|
||||
- name: ensure special case with ansible_env is skipped but others still work
|
||||
assert:
|
||||
that:
|
||||
- lookup('env', 'PATH') == ansible_env.PATH
|
||||
- target_path.stdout == ansible_env.PATH
|
||||
- "'/lola' not in ansible_env.PATH"
|
||||
- ansible_env.lola == 'ido'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user