|
---
|
|
- name: Append domains to dehydrated config
|
|
lineinfile:
|
|
path: /etc/dehydrated/domains.txt
|
|
regexp: '({{ domains | join("|") }})'
|
|
line: '{{ domains | join(" ") }}'
|
|
register: config
|
|
|
|
- name: Call dehydrated to create certificates
|
|
shell:
|
|
cmd: dehydrated -c
|
|
when: config.changed
|