Suppress rsync warnings w/command

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

Depends-On: I3acc4436c8b70af097de188b9de2bb9f4e093a09
Change-Id: I42652318f128120b1ecec4781066c89ee9023636
(cherry picked from commit 20801aa010)
This commit is contained in:
Major Hayden 2017-09-01 09:39:39 -05:00
parent 31bf026497
commit 65a330b0bc
1 changed files with 4 additions and 0 deletions

View File

@ -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