From 5e07412fcc7f3e55203860b9f5e300c0c6cd6ad8 Mon Sep 17 00:00:00 2001 From: Jonathan Rosser Date: Thu, 24 Jun 2021 13:31:00 +0100 Subject: [PATCH] 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 --- playbooks/openstack-hosts-setup.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/playbooks/openstack-hosts-setup.yml b/playbooks/openstack-hosts-setup.yml index 3591a6ce57..6568b109cd 100644 --- a/playbooks/openstack-hosts-setup.yml +++ b/playbooks/openstack-hosts-setup.yml @@ -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