Skip to content

Commit

Permalink
Splitted in two playbooks
Browse files Browse the repository at this point in the history
  • Loading branch information
CFSNM committed Feb 16, 2022
1 parent d2159f8 commit d7705ab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion read_file_content.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
- name: "Check if {{ filepath }} content is correct"
fail:
msg: "{{ filepath }} doesnt have the correct content"
when: "not {{ cnt_to_check }} in cnt"
when: 'not "{{ cnt_to_check }}" in cnt'
4 changes: 2 additions & 2 deletions write_file_content.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
- name: "Write content into a file"
copy:
dest: "{{ filepath }}"
content: "Test Line"
content: "Test_Content_Line"

- name: "Check file {{ filepath }} stat result"
stat:
Expand All @@ -28,4 +28,4 @@
- name: "Check if {{ filepath }} content is correct"
fail:
msg: "{{ filepath }} doesnt have the correct content"
when: "not 'Test Line' in cnt"
when: 'not "Test_Content_Line" in cnt'

0 comments on commit d7705ab

Please sign in to comment.