Use first utility host as default host for openstack_resources

At the moment openstack_service_setup_host is not actually respected as
group_vars defaults provisionment happens during runtime of
the playbook.

With that, openstack_service_setup_host does have the same value
by default for both distro and source installations, which is the
first utility host.

Let's use this value as default since it might fit most of the usecases.

Closes-Bug: #2096939
Change-Id: Id3eb93a3c226185c614e324609bf7be5d789f248
This commit is contained in:
Dmitriy Rabotyagov 2025-03-20 12:50:52 +01:00
parent 29ce380dd8
commit ce4f47e184

View File

@ -14,7 +14,7 @@
# limitations under the License.
- name: Create requested OpenStack Resources
hosts: "{{ openstack_service_setup_host | default('localhost') }}"
hosts: "{{ openstack_service_setup_host | default(groups['utility_all'][0] | default('localhost')) }}"
tasks:
- name: Setup installation variables
include_role: