19 lines
No EOL
571 B
YAML
19 lines
No EOL
571 B
YAML
---
|
|
- name: Ensure domain directories are present.
|
|
file:
|
|
name: "{{ dehydrated_certs_dir }}/{{ item.name }}"
|
|
state: directory
|
|
with_items: dehydrated_domains
|
|
|
|
- name: Render hook script templates.
|
|
template:
|
|
src: hook.sh.j2
|
|
dest: "{{ dehydrated_certs_dir }}/{{ item.name }}/hook.sh"
|
|
with_items: dehydrated_domains
|
|
|
|
- name: Ensure Domains are in domains.txt
|
|
lineinfile:
|
|
path: "{{ dehydrated_config_dir }}/domains.txt"
|
|
line: "{{ item.name }} {{ item.alternate_names|default(omit) }}"
|
|
with_items: dehydrated_domains
|
|
notify: dehydrated cron |