From 45237f270d069f295382912e193593b9b47038b9 Mon Sep 17 00:00:00 2001 From: James Cammarata Date: Tue, 29 Apr 2014 15:34:45 -0500 Subject: [PATCH] Adding a new test for the synchronize module to test rsync_path --- test/integration/roles/test_synchronize/tasks/main.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/integration/roles/test_synchronize/tasks/main.yml b/test/integration/roles/test_synchronize/tasks/main.yml index 607191fb2c..51c8febb13 100644 --- a/test/integration/roles/test_synchronize/tasks/main.yml +++ b/test/integration/roles/test_synchronize/tasks/main.yml @@ -56,3 +56,9 @@ - "sync_result.results|length == 2" - "sync_result.results[0].msg.endswith('+ foo.txt\n')" - "sync_result.results[1].msg.endswith('+ bar.txt\n')" + +- name: synchronize files using rsync_path (issue#7182) + synchronize: src={{output_dir}}/foo.txt dest={{output_dir}}/foo.rsync_path rsync_path="sudo rsync" + register: sync_result + +- debug: var=sync_result