From ce4f47e184b31d52498f43086751f99a2e669299 Mon Sep 17 00:00:00 2001 From: Dmitriy Rabotyagov Date: Thu, 20 Mar 2025 12:50:52 +0100 Subject: [PATCH] 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 --- playbooks/openstack-resources.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/playbooks/openstack-resources.yml b/playbooks/openstack-resources.yml index 3551bff829..2eb5035ee3 100644 --- a/playbooks/openstack-resources.yml +++ b/playbooks/openstack-resources.yml @@ -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: