From ef82c2f9de5027b6f26b985bb63d4d9831478eda Mon Sep 17 00:00:00 2001 From: Konstantin Gizdov Date: Wed, 1 Jul 2020 21:23:05 +0300 Subject: [PATCH] use correct python executable --- tasks/install-from-source.yml | 2 +- vars/Debian.yml | 3 +++ vars/Ubuntu-16.04.yml | 1 + vars/default.yml | 1 + 4 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 vars/Debian.yml diff --git a/tasks/install-from-source.yml b/tasks/install-from-source.yml index 4a1401a..b4afd2b 100644 --- a/tasks/install-from-source.yml +++ b/tasks/install-from-source.yml @@ -8,7 +8,7 @@ force: true - name: Install certbot-dns-digitalocean - shell: "cd {{certbot_dir}}/{{ item }} && python setup.py install" + shell: "cd {{certbot_dir}}/{{ item }} && {{ python_executable }} setup.py install" with_items: "{{ certbot_dns_providers }}" - name: Set Certbot script variable. diff --git a/vars/Debian.yml b/vars/Debian.yml new file mode 100644 index 0000000..c773587 --- /dev/null +++ b/vars/Debian.yml @@ -0,0 +1,3 @@ +--- +certbot_package: certbot +python_executable: python3 diff --git a/vars/Ubuntu-16.04.yml b/vars/Ubuntu-16.04.yml index 83cf124..39c0c84 100644 --- a/vars/Ubuntu-16.04.yml +++ b/vars/Ubuntu-16.04.yml @@ -1,2 +1,3 @@ --- certbot_package: letsencrypt +python_executable: python3 diff --git a/vars/default.yml b/vars/default.yml index d88f2dc..c773587 100644 --- a/vars/default.yml +++ b/vars/default.yml @@ -1,2 +1,3 @@ --- certbot_package: certbot +python_executable: python3