Add install by pip

This commit is contained in:
Aurimas Blažulionis 2022-11-15 12:50:40 +02:00
parent c6297ddebb
commit 7239211a4d
No known key found for this signature in database
GPG Key ID: 8707AB2921774338
2 changed files with 20 additions and 0 deletions

View File

@ -0,0 +1,17 @@
---
- name: Install certbot system dependencies
package: "name=python3-pip state=present"
- name: Install virtualenv
ansible.builtin.pip:
name: virtualenv
- name: Install certbot from pip
ansible.builtin.pip:
name: certbot
virtualenv: "{{ certbot_dir }}"
virtualenv_command: /usr/local/bin/virtualenv
- name: Set Certbot script variable.
set_fact:
certbot_script: "{{ certbot_dir }}/bin/certbot"

View File

@ -13,6 +13,9 @@
- import_tasks: install-from-source.yml
when: certbot_install_method == 'source'
- import_tasks: install-with-pip.yml
when: certbot_install_method == 'pip'
- include_tasks: create-cert-standalone.yml
with_items: "{{ certbot_certs }}"
when: