Skip to content

Commit

Permalink
Fix typo in commands
Browse files Browse the repository at this point in the history
Signed-off-by: Petr "Stone" Hracek <[email protected]>
  • Loading branch information
phracek committed Nov 1, 2024
1 parent 98927aa commit 532660d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tasks/check_output_command.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
- debug: var=stat_result

- name: Check if required string 'vendor_name' is present in output
shell: "grep {{ item.vendor_name }} {{ stat_result.stdout }}"
shell: "grep {{ item.vendor_name }} \"{{ stat_result.stdout }}\""
register: device_result

- debug: var=device_result

- name: Check if required string 'device_name' is present in output
shell: "grep {{ item.device_name }} {{ device_result.stdout }}"
shell: "grep {{ item.device_name }} \"{{ device_result.stdout }}\""

- name: Fail if output of command {{ item }} is not present
fail: msg="This host {{ os_test }} does not contain file {{ item }}"
Expand Down

0 comments on commit 532660d

Please sign in to comment.