From 90fe5472765931acd6764dfe73b121507b01f81a Mon Sep 17 00:00:00 2001 From: Jesse Pretorius Date: Wed, 17 Apr 2019 15:25:11 +0100 Subject: [PATCH] Name the venv install block/rescue tasks Looking at the output of the tasks, or reviewing them with ARA, is a bit confusing without the names explaining what they are doing. Change-Id: Idb940f011f3b83c222a5acfe6a9430027eb2a657 --- tasks/python_venv_install.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/tasks/python_venv_install.yml b/tasks/python_venv_install.yml index d526ed8..e72f4d0 100644 --- a/tasks/python_venv_install.yml +++ b/tasks/python_venv_install.yml @@ -122,7 +122,8 @@ - name: Install python packages into the venv block: - - pip: + - name: Install python packages into the venv + pip: name: "{{ (venv_default_pip_packages | union(venv_pip_packages)) | sort }}" state: "{{ venv_pip_package_state }}" virtualenv: "{{ venv_install_destination_path }}" @@ -141,14 +142,16 @@ notify: - venv changed rescue: - - file: + - name: Remove venv requirements/constraints files due to install failure + file: path: "{{ item }}" state: absent with_items: - "{{ venv_install_destination_path }}/constraints.txt" - "{{ venv_install_destination_path }}/global-constraints.txt" - "{{ venv_install_destination_path }}/requirements.txt" - - fail: + - name: Show venv install failure message + fail: msg: > The python packages have failed to install, please check the log file located at /var/log/python_venv_build.log for more information.