ansible-role-certbot/tasks/install-with-pip.yml
2019-09-18 17:42:37 -03:00

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