mirror of
https://github.com/geerlingguy/ansible-role-certbot.git
synced 2025-09-13 17:41:10 +02:00
* Add Cloudflare support * Ensure cron install * linting * Add Redhat cron install * Update vars
24 lines
583 B
YAML
24 lines
583 B
YAML
---
|
|
- name: Clone Certbot into configured directory.
|
|
git:
|
|
repo: "{{ certbot_repo }}"
|
|
dest: "{{ certbot_dir }}"
|
|
version: "{{ certbot_version }}"
|
|
update: "{{ certbot_keep_updated }}"
|
|
force: true
|
|
|
|
- name: Set Certbot script variable.
|
|
set_fact:
|
|
certbot_script: "{{ certbot_dir }}/certbot-auto"
|
|
|
|
- name: Ensure certbot-auto is executable.
|
|
file:
|
|
path: "{{ certbot_script }}"
|
|
mode: 0755
|
|
|
|
- name: Install certbot-dns-cloudflare plugin via pip.
|
|
pip:
|
|
name: certbot-dns-cloudflare
|
|
state: present
|
|
when: certbot_create_method == 'dns-cloudflare'
|