More test fixes for split controller/remote tests.

This commit is contained in:
Matt Clay
2019-01-25 19:37:56 -08:00
parent 73636175da
commit a8116497ba
49 changed files with 217 additions and 135 deletions

View File

@@ -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'