89c8eb5a08
* Split up lookup integration tests. * Rename lookup_paths integration test. This will avoid confusing it for a test of the `paths` lookup plugin, which does not exist. * Fix lookup_pipe integration test. The test now verifies it receives the correct output. Adding a second task also causes code coverage to be properly registered for the lookup plugin. * Rename ini lookup test to match plugin name. * Update sanity ignore path.
13 lines
286 B
YAML
13 lines
286 B
YAML
- name: make a new file to read
|
|
copy: dest={{output_dir}}/foo.txt mode=0644 content="bar"
|
|
|
|
- name: load the file as a fact
|
|
set_fact:
|
|
foo: "{{ lookup('file', output_dir + '/foo.txt' ) }}"
|
|
|
|
- debug: var=foo
|
|
|
|
- name: verify file lookup
|
|
assert:
|
|
that:
|
|
- "foo == 'bar'"
|