Suppress rsync warnings w/command

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

Change-Id: I42652318f128120b1ecec4781066c89ee9023636
This commit is contained in:
Major Hayden 2017-09-01 09:39:39 -05:00
parent 38c6379524
commit 20801aa010
No known key found for this signature in database
GPG Key ID: 737051E0C1011FB1

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