blob: a6d636db8897db825796cfc94edd57a70196a710 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
- 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'"
|