From 8ea3140f36ad2387393e73f9dec364102875ebc4 Mon Sep 17 00:00:00 2001 From: Vladyslav Smirnov Date: Wed, 18 Aug 2021 10:53:57 +0200 Subject: [PATCH] ADHOC extract azure pip packages into separate variable. This will allow us to override the variable on the project level and specify exact package version if needed. --- defaults/main.yml | 8 ++++++++ tasks/dependencies/azure-blob.yml | 5 +---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/defaults/main.yml b/defaults/main.yml index 6b9ac9a..cb6d120 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -55,3 +55,11 @@ import_db_tmp_path: "/tmp/import_db" # until: job_result.finished # retries: 30 import_db_allow_async: false + +## This is the list of required dependencies for Azure +## do not override this variable unless you know what you are doing, +## package dependencies should only be overridden in edge cases or to enforce a specific version +azure_python_package_dependencies: + - packaging + - msrestazure + - ansible[ azure ] diff --git a/tasks/dependencies/azure-blob.yml b/tasks/dependencies/azure-blob.yml index 12044e7..703431a 100644 --- a/tasks/dependencies/azure-blob.yml +++ b/tasks/dependencies/azure-blob.yml @@ -5,7 +5,4 @@ state: "latest" become: "True" become_user: "root" - with_items: - - packaging - - msrestazure - - ansible[azure] + with_items: "{{ azure_python_package_dependencies }}"