updates to file-test.yml

This commit is contained in:
Chris Hammer
2022-02-09 12:37:13 -05:00
parent 603a9e30f3
commit 55c03f9901

View File

@ -8,10 +8,11 @@
tasks:
- name: Run file test
block:
- name: "Test #3 - induce failure (but only for a specified host)"
command:
cmd: cat /tmp/hello-ansible.txt
register: r_check_file
- name: "Test #1: register file contents"
command :
cmd : cat /tmp/hello-ansible.txt
changed_when : no
register : r_check_file
rescue: