From 39ee3f55b71b7f641fc54d9cec0ac94eb3ebbffe Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Fri, 22 May 2020 23:34:25 +0200 Subject: [PATCH] make pip version configurabel --- defaults/main.yml | 1 + tasks/install.yml | 2 ++ 2 files changed, 3 insertions(+) diff --git a/defaults/main.yml b/defaults/main.yml index 3a99e48..75956a2 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -3,6 +3,7 @@ certbot_packages_extra: [] certbot_user: root +certbot_pip: "pip{{ ansible_python.version.major }}" certbot_work_dir: /var/lib/letsencrypt certbot_config_dir: /etc/letsencrypt diff --git a/tasks/install.yml b/tasks/install.yml index 2ab3960..d58aeae 100644 --- a/tasks/install.yml +++ b/tasks/install.yml @@ -11,6 +11,7 @@ pip: name: "{{ item }}" extra_args: --user + executable: "{{ certbot_pip }}" state: present loop: "{{ certbot_packages_extra }}" @@ -18,6 +19,7 @@ pip: name: "{{ item }}" extra_args: --user + executable: "{{ certbot_pip }}" state: present loop: "{{ __certbot_packages }}"