From 44aaab4f6fdee09e24e1493c62c316a53660928e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Pasternak?= Date: Sun, 1 Oct 2023 18:01:50 +0200 Subject: [PATCH] Konfigurowalna nazwa pakietu --- ansible/roles/bpp-site/defaults/main.yml | 1 + ansible/roles/bpp-site/tasks/main.yml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ansible/roles/bpp-site/defaults/main.yml b/ansible/roles/bpp-site/defaults/main.yml index bebab1b..9d3d062 100644 --- a/ansible/roles/bpp-site/defaults/main.yml +++ b/ansible/roles/bpp-site/defaults/main.yml @@ -1,4 +1,5 @@ --- +django_package_name: "bpp-iplweb" django_user: bpp django_project_name: django_bpp diff --git a/ansible/roles/bpp-site/tasks/main.yml b/ansible/roles/bpp-site/tasks/main.yml index 2beb213..a9eedf3 100644 --- a/ansible/roles/bpp-site/tasks/main.yml +++ b/ansible/roles/bpp-site/tasks/main.yml @@ -77,7 +77,7 @@ tags: ['config'] - name: Instalacja pakietu BPP (to może chwilę potrwać...) - command: "{{ django_home_dir }}/vexec pip install --upgrade --pre bpp-iplweb" + command: "{{ django_home_dir }}/vexec pip install --upgrade --pre {{ django_package_name }}" # Ponizsze bylo uzywane przy instalacji z prywatnego repo # --extra-index-url http://dev.iplweb.pl:8080/ --trusted-host dev.iplweb.pl become: yes