From 11f1d99a5b133e81354b835f8bca5d24ffebdc29 Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Fri, 12 Jun 2015 23:41:16 -0400 Subject: [PATCH] added test for first_available and copy --- test/integration/roles/test_copy/tasks/main.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/integration/roles/test_copy/tasks/main.yml b/test/integration/roles/test_copy/tasks/main.yml index 5e77295fbb..8bb13b4502 100644 --- a/test/integration/roles/test_copy/tasks/main.yml +++ b/test/integration/roles/test_copy/tasks/main.yml @@ -250,3 +250,9 @@ assert: that: - replace_follow_result.checksum == target_file_result.stdout + +- name: test first avialable file + copy: dest={{output_dir}}/faf_test + first_available_file: + - doesntexist.txt + - foo.txt