Created
April 16, 2018 10:45
-
-
Save mgedmin/ce998e61f71a548ada645c8efb0903aa to your computer and use it in GitHub Desktop.
Upgrading all certbot dependencies given pip >= 10
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- name: install letsencrypt | |
pip: | |
name: "{{ item }}" | |
virtualenv: /opt/letsencrypt | |
state: "{{ 'present' if ansible_check_mode else 'latest' }}" | |
extra_args: >- | |
{% if 'pip' not in item and not ansible_check_mode -%} | |
--upgrade-strategy=eager | |
{%- endif %} | |
with_items: | |
# upgrade setuptools because why not? | |
# upgrade pip because why not? | |
# upgrade nothing in --check mode because of https://github.com/ansible/ansible-modules-core/issues/3060 | |
- "{{ ['pip', 'setuptools'] if not ansible_check_mode else [] }}" | |
- certbot | |
- certbot-apache | |
tags: [ letsencrypt, pip ] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment