From 20801aa010f8914a9399b02508fc56188b111be2 Mon Sep 17 00:00:00 2001
From: Major Hayden <major@mhtx.net>
Date: Fri, 1 Sep 2017 09:39:39 -0500
Subject: [PATCH] Suppress rsync warnings w/command

Ansible throws warnings when we use rsync with the command
module. This patch suppresses those warnings.

Change-Id: I42652318f128120b1ecec4781066c89ee9023636
---
 tasks/swift_rings_distribute.yml | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/tasks/swift_rings_distribute.yml b/tasks/swift_rings_distribute.yml
index 2461bcc1..b8876709 100644
--- a/tasks/swift_rings_distribute.yml
+++ b/tasks/swift_rings_distribute.yml
@@ -25,6 +25,8 @@
     rsync -e 'ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no'
           -avz {{ swift_system_user_name }}@{{ hostvars[groups['swift_hosts'][0]]['ansible_host'] }}:/etc/swift/ring_build_files/
           /etc/swift/
+  args:
+    warn: no
   become: yes
   become_user: "{{ swift_system_user_name }}"
   changed_when: false
@@ -38,6 +40,8 @@
     rsync -e 'ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no'
           -avz {{ swift_system_user_name }}@{{ hostvars[groups['swift_hosts'][0]]['ansible_host'] }}:/etc/swift/ring_build_files/
           /etc/swift/ring_build_files/
+  args:
+    warn: no
   become: yes
   become_user: "{{ swift_system_user_name }}"
   changed_when: false