Run keystone pre-service setup tasks on all keystone hosts first

Some of these tasks, such as setting up ssh keys are required to
be complete on all hosts before the main keystone service deployment
happens.

This change runs a specific tasks file from the os_keystone role
across all of the keystone hosts to do the initial setup, before the
os_keystone role is run again with a serial: setting appropiate for
deploying the actual service code in an HA deployment.

Closes-Bug: 1975718
Depends-On: https://review.opendev.org/c/openstack/openstack-ansible-os_keystone/+/843739
Change-Id: Ib3efe0c43e20904cfbd9b89523e5118413c2282e
This commit is contained in:
Jonathan Rosser 2022-05-29 12:24:42 +01:00
parent 85d8902416
commit 54b0872278

View File

@ -38,6 +38,17 @@
tags:
- always
- name: Pre-service deployment
hosts: keystone_all
gather_facts: false
tasks:
- name: "Pre-service deployment tasks from os_keystone role"
include_role:
name: os_keystone
tasks_from: main_pre.yml
tags:
- keystone
- name: Installation and setup of Keystone
hosts: keystone_all
serial: "{{ keystone_serial | default(['1', '100%']) }}"