Merge "Define local facts separately only for distro"

This commit is contained in:
Zuul 2022-12-08 14:44:16 +00:00 committed by Gerrit Code Review
commit 28d82b68b5

View File

@ -37,6 +37,8 @@
delay: 2 delay: 2
tags: tags:
- nova-pip-packages - nova-pip-packages
notify:
- "Restart nova services"
- name: Install the python venv - name: Install the python venv
import_role: import_role:
@ -123,6 +125,16 @@
condition: "{{ serial_proxy_enabled.rc is defined and serial_proxy_enabled.rc == 0 }}" condition: "{{ serial_proxy_enabled.rc is defined and serial_proxy_enabled.rc == 0 }}"
type: "serialconsole" type: "serialconsole"
- name: Record local facts for distro path
when: nova_install_method == 'distro'
block:
- name: Record the osa version deployed
ini_file:
dest: "/etc/ansible/facts.d/openstack_ansible.fact"
section: nova
option: venv_tag
value: "{{ nova_venv_tag }}"
- name: Initialise the upgrade facts - name: Initialise the upgrade facts
ini_file: ini_file:
dest: "/etc/ansible/facts.d/openstack_ansible.fact" dest: "/etc/ansible/facts.d/openstack_ansible.fact"