Run nova_db_post_setup from playbook directly

Due to some bugs delegation of tasks from compute to conductor hosts
does not work in real life. Due to that task import was moved to
the playbook level using role import in combination with tasks_from.

Depends-On: https://review.opendev.org/c/openstack/openstack-ansible/+/897570
Change-Id: I777b1c90f57c805bc0a8593b5a5c7e63e43c4cd8
This commit is contained in:
Dmitriy Rabotyagov 2023-10-06 17:59:08 +02:00 committed by Dmitriy Rabotyagov
parent d82a9d424e
commit e4ffb047c0

View File

@ -339,16 +339,3 @@
compute_host_to_wait_for: "{{ ansible_facts['nodename'] }}"
tags:
- nova-config
# We have to delegate this back to the conductor
# because the compute hosts do not have access to
# the database connection string and therefore
# cannot run nova-manage.
- name: Importing nova_db_post_setup tasks
import_tasks: nova_db_post_setup.yml
delegate_to: "{{ nova_conductor_setup_host }}"
run_once: true
when:
- "nova_services['nova-compute']['group'] in group_names"
tags:
- nova-config