ansible-role-certbot/tasks/install-from-pypi.yml
Wayne Warren af20a792c5 Address linter complaints.
* Truthy values should be true or false rather than yes or no
* Linter won't allow hard-coded 'latest' package state
2019-05-29 00:13:34 +00:00

26 lines
533 B
YAML

---
- name: Install latest Certbot from pypi
when:
- certbot_pypi_version == "latest"
pip:
name: "{{ item }}"
state: "{{ certbot_pypi_version }}"
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"