mirror of
https://github.com/geerlingguy/ansible-role-certbot.git
synced 2026-09-08 23:20:40 +02:00
Merge
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
dest: "{{ certbot_dir }}"
|
||||
version: "{{ certbot_version }}"
|
||||
update: "{{ certbot_keep_updated }}"
|
||||
force: yes
|
||||
force: true
|
||||
|
||||
- name: Set Certbot script variable.
|
||||
set_fact:
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
---
|
||||
- name: Check if certificate already exists.
|
||||
stat:
|
||||
path: /etc/letsencrypt/live/{{ cert_item.domains | first }}/cert.pem
|
||||
path: /etc/letsencrypt/live/{{ cert_item.domains | first | replace('*.', '') }}/cert.pem
|
||||
register: letsencrypt_cert_exists
|
||||
|
||||
- name: Check if certificate domain list has changed.
|
||||
lineinfile:
|
||||
path: /etc/letsencrypt/domains-{{ cert_item.domains | first }}.json
|
||||
path: /etc/letsencrypt/domains-{{ cert_item.domains | first | replace('*.', '' }}.json
|
||||
line: " {{ cert_item.domains | to_json }}"
|
||||
state: present
|
||||
create: yes
|
||||
|
||||
Reference in New Issue
Block a user