Reset deploy host SSH connection after running openstack_hosts role

The openstack hosts role adjusts environment variable settings which
need to be available later in the deployment to ansible tasks. Ensure
that the ssh connection is re-established so that these variables
will be in scope on the target host.

Change-Id: Ie1905a1d939d2852752f35c7a8fa52bf8aeac3b6
This commit is contained in:
Jonathan Rosser 2021-06-24 13:31:00 +01:00
parent 57ac756465
commit 5e07412fcc

View File

@ -71,6 +71,9 @@
vars_files:
- defaults/repo_packages/openstack_services.yml
- "defaults/{{ install_method }}_install.yml"
post_tasks:
- name: Ensure deploy host SSH connection is reset
meta: reset_connection
environment: "{{ deployment_environment_variables | default({}) }}"
tags:
- openstack-hosts