Merge "Setup db/mq/service during scheduler run"

This commit is contained in:
Zuul 2022-04-26 13:09:42 +00:00 committed by Gerrit Code Review
commit 9c170cf1f5
2 changed files with 3 additions and 2 deletions

View File

@ -148,7 +148,7 @@
- import_tasks: cinder_db_sync.yml
when:
- _cinder_is_first_play_host
- _cinder_is_first_api_play_host
tags:
- cinder-config

View File

@ -13,7 +13,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
_cinder_is_first_play_host: "{{ (cinder_services['cinder-api']['group'] in group_names and inventory_hostname == (groups[cinder_services['cinder-api']['group']] | intersect(ansible_play_hosts)) | first) | bool }}"
_cinder_is_first_api_play_host: "{{ (cinder_services['cinder-api']['group'] in group_names and inventory_hostname == (groups[cinder_services['cinder-api']['group']] | intersect(ansible_play_hosts)) | first) | bool }}"
_cinder_is_first_play_host: "{{ (cinder_services['cinder-scheduler']['group'] in group_names and inventory_hostname == (groups[cinder_services['cinder-scheduler']['group']] | intersect(ansible_play_hosts)) | first) | bool }}"
_cinder_is_last_play_host: "{{ (cinder_services['cinder-api']['group'] in group_names and inventory_hostname == (groups[cinder_services['cinder-api']['group']] | intersect(ansible_play_hosts)) | last) | bool }}"
_cinder_rootwrap_conf_overrides: