diff --git a/tasks/keystone_install.yml b/tasks/keystone_install.yml index 03623e21..12adf819 100644 --- a/tasks/keystone_install.yml +++ b/tasks/keystone_install.yml @@ -99,6 +99,17 @@ include_tasks: keystone_install_source.yml when: keystone_install_method == 'source' +# TODO(hwoarang): We need to have a venv_tag local fact deployed since we use it in the +# integration repo to determine if keystone software is the same across all nodes in the +# keystone_all group so we can safely run the DB migration. See +# https://github.com/openstack/openstack-ansible/blob/master/playbooks/os-keystone-install.yml +- name: Record the venv tag deployed + ini_file: + dest: "/etc/ansible/facts.d/openstack_ansible.fact" + section: keystone + option: venv_tag + value: "{{ keystone_venv_tag }}" + - name: Initialise the upgrade facts ini_file: dest: "/etc/ansible/facts.d/openstack_ansible.fact" diff --git a/tasks/keystone_install_source.yml b/tasks/keystone_install_source.yml index cf7145f2..5d1a4f04 100644 --- a/tasks/keystone_install_source.yml +++ b/tasks/keystone_install_source.yml @@ -110,10 +110,3 @@ when: keystone_get_venv is changed tags: - skip_ansible_lint - -- name: Record the venv tag deployed - ini_file: - dest: "/etc/ansible/facts.d/openstack_ansible.fact" - section: keystone - option: venv_tag - value: "{{ keystone_venv_tag }}"