7b02afd3ce
In previous patch [1] I wrongly assumed that there's no reason to have /etc/swift/ring_build_files/ on all hosts. However, there's another logic in the role, that assumes having these files and verifying md5sum of them. As an easy bugfix, we're returning sync to ring_build_files until we change logic. It's also easily backportable. [1] https://review.opendev.org/c/openstack/openstack-ansible-os_swift/+/765354 Change-Id: If0e686352e08379027508c2939fae00db6ae6cb8 Closes-Bug: #1973045
31 lines
1011 B
YAML
31 lines
1011 B
YAML
---
|
|
# Copyright 2014, Rackspace US, Inc.
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
|
|
- name: Pull swift rings to localhost
|
|
synchronize:
|
|
src: /etc/swift/ring_build_files/
|
|
dest: "{{ lookup('env', 'OSA_CONFIG_DIR') }}/ring_build_files/"
|
|
mode: pull
|
|
when: _swift_is_first_play_host
|
|
|
|
- name: Upload swift rings
|
|
synchronize:
|
|
src: "{{ lookup('env', 'OSA_CONFIG_DIR') }}/ring_build_files/"
|
|
dest: "{{ item }}"
|
|
mode: push
|
|
with_items:
|
|
- /etc/swift/
|
|
- /etc/swift/ring_build_files/
|