From 70a00cc28d96d141ffa315ac6d8af058aa4ccb6a Mon Sep 17 00:00:00 2001 From: Dmitriy Rabotyagov Date: Tue, 12 May 2020 19:00:34 +0300 Subject: [PATCH] Fix variables gathering for add-compute script We add openstack-hosts tag for the openstack-hosts-setup.yml to gather hosts facts. Otherwise play may fail while task `Gather variables for each operating system` due to undefined ansible_* facts. We don't need some common steps in futher plays since gathered facts are already cached. Change-Id: I068c5b26663cfce8327935850f043ab7d3dd2f61 --- scripts/add-compute.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/add-compute.sh b/scripts/add-compute.sh index 84fc75772a..4d0e771b10 100755 --- a/scripts/add-compute.sh +++ b/scripts/add-compute.sh @@ -32,7 +32,7 @@ function define_tasks { RUN_TASKS+=("${OSA_REPO_PATH}/playbooks/setup-hosts.yml --limit ${HOSTS}") RUN_TASKS+=("${OSA_REPO_PATH}/playbooks/setup-openstack.yml --limit ${HOSTS}") - RUN_TASKS+=("${OSA_REPO_PATH}/playbooks/openstack-hosts-setup.yml --tags openstack_hosts-config") + RUN_TASKS+=("${OSA_REPO_PATH}/playbooks/openstack-hosts-setup.yml --tags openstack_hosts-config,openstack-hosts") RUN_TASKS+=("${OSA_REPO_PATH}/playbooks/unbound-install.yml --tags unbound-config") RUN_TASKS+=("${OSA_REPO_PATH}/playbooks/os-nova-install.yml --tags nova-key --limit nova_compute")