From 09f613dab7b0ab87324612da164297de5ddbf3b9 Mon Sep 17 00:00:00 2001 From: Dmitriy Rabotyagov Date: Mon, 13 Apr 2020 19:02:14 +0300 Subject: [PATCH] Fix horizon-config tag If role has been run with horizon-config tag it was ending up with [1] So to avoid failure we add this tag to set_fact task. [1] http://paste.openstack.org/show/792048/ Change-Id: I02026f135162fcbad646dd162344a4f4dd9f3b12 --- tasks/horizon_install.yml | 2 +- tasks/horizon_install_source.yml | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/tasks/horizon_install.yml b/tasks/horizon_install.yml index 9443b1c3..615452c6 100644 --- a/tasks/horizon_install.yml +++ b/tasks/horizon_install.yml @@ -62,5 +62,5 @@ - Restart apache2 - name: Install horizon packages from PIP - include_tasks: horizon_install_source.yml + import_tasks: horizon_install_source.yml when: horizon_install_method == 'source' diff --git a/tasks/horizon_install_source.yml b/tasks/horizon_install_source.yml index c8fca3a5..12196f6a 100644 --- a/tasks/horizon_install_source.yml +++ b/tasks/horizon_install_source.yml @@ -80,6 +80,8 @@ - name: Set python lib dir fact set_fact: horizon_lib_dir: "{{ _horizon_python_venv_details.files[0].path }}/dist-packages" + tags: + - horizon-config - name: Create horizon link for venv file: