Use rsync instead of synchronize module for remote copy
The synchronize module with delegation introduces complexity with permissions which we really, really do not need to have to deal with for a remote sync. So instead, we just use rsync because it's simpler to use and understand. Change-Id: I6fae5af8d59ea9499cc90a35f1d2f5176fbf9d04 Related-Bug: #1718356
This commit is contained in:
parent
83c07a4cb9
commit
5dd4abe61a
@ -93,10 +93,14 @@
|
||||
- Restart cinder services
|
||||
|
||||
- name: Copy cinder rootwrap filters
|
||||
synchronize:
|
||||
src: "/openstack/venvs/cinder-{{ cinder_venv_tag }}/etc/cinder/rootwrap.d/"
|
||||
dest: /etc/cinder/rootwrap.d/
|
||||
delegate_to: "{{ inventory_hostname }}"
|
||||
command: >-
|
||||
rsync --archive --itemize-changes --delete
|
||||
/openstack/venvs/cinder-{{ cinder_venv_tag }}/etc/cinder/rootwrap.d/
|
||||
/etc/cinder/rootwrap.d/
|
||||
args:
|
||||
warn: no
|
||||
register: _copy_rootwraps
|
||||
changed_when: _copy_rootwraps.stdout != ''
|
||||
notify:
|
||||
- Manage LB
|
||||
- Restart cinder services
|
||||
|
Loading…
x
Reference in New Issue
Block a user