mirror of
https://github.com/geerlingguy/ansible-role-certbot.git
synced 2025-04-19 00:41:38 +02:00
Add install by pip
This commit is contained in:
parent
c6297ddebb
commit
7239211a4d
17
tasks/install-with-pip.yml
Normal file
17
tasks/install-with-pip.yml
Normal 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"
|
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user