blob: 56ef08dc93d32268abcbe2a466d44f3a0ef56836 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
- name: Create a test file
copy:
content: diff test
dest: "{{ remote_tmp_dir_test }}/diff.txt"
- name: Add block to file with diff
blockinfile:
path: "{{ remote_tmp_dir_test }}/diff.txt"
block: |
line 1
line 2
register: difftest
diff: yes
- name: Ensure diff was shown
assert:
that:
- difftest.diff | length > 0
|