This commit is contained in:
Yoan Tournade
2019-01-18 11:07:42 +01:00
15 changed files with 131 additions and 62 deletions
+1 -1
View File
@@ -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:
+2 -2
View File
@@ -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