mirror of
https://github.com/geerlingguy/ansible-role-certbot.git
synced 2025-04-19 17:01:37 +02:00
16 lines
400 B
YAML
16 lines
400 B
YAML
---
|
|
- name: Install pip
|
|
package: name=python-pip state=present
|
|
when: certbot_install == 'pip'
|
|
|
|
- name: Install pip3
|
|
package: name=python3-pip state=present
|
|
when: certbot_install == 'pip3'
|
|
|
|
- name: Install Certbot.
|
|
pip: name="{{ certbot_package }}" state=present executable="{{ certbot_install }}"
|
|
|
|
- name: Set Certbot script variable.
|
|
set_fact:
|
|
certbot_script: /usr/local/bin/certbot
|