ansible-role-certbot/tasks/install-from-pypi.yml
2019-05-23 13:32:14 +00:00

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"