mirror of
https://github.com/geerlingguy/ansible-role-certbot.git
synced 2025-04-20 09:11:43 +02:00
26 lines
511 B
YAML
26 lines
511 B
YAML
---
|
|
- name: Install latest Certbot from pypi
|
|
when:
|
|
- certbot_pypi_version == "latest"
|
|
pip:
|
|
name: "{{ item }}"
|
|
state: latest
|
|
with_items:
|
|
- certbot
|
|
- certbot-nginx
|
|
|
|
- name: Install latest Certbot from pypi
|
|
when:
|
|
- certbot_pypi_version != "latest"
|
|
pip:
|
|
name: "{{ item }}"
|
|
state: present
|
|
version: "{{ certbot_pypi_version }}"
|
|
with_items:
|
|
- certbot
|
|
- certbot-nginx
|
|
|
|
- name: Set Certbot script variable.
|
|
set_fact:
|
|
certbot_script: "/usr/local/bin/certbot"
|