forked from Netz39_Admin/netz39-infra-ansible
fix domain iteration
This commit is contained in:
parent
06400afc87
commit
ea4e167f20
1 changed files with 4 additions and 4 deletions
|
@ -3,17 +3,17 @@
|
||||||
file:
|
file:
|
||||||
name: "{{ dehydrated_certs_dir }}/{{ item.name }}"
|
name: "{{ dehydrated_certs_dir }}/{{ item.name }}"
|
||||||
state: directory
|
state: directory
|
||||||
with_items: dehydrated_domains
|
with_items: "{{ dehydrated_domains }}"
|
||||||
|
|
||||||
- name: Render hook script templates.
|
- name: Render hook script templates.
|
||||||
template:
|
template:
|
||||||
src: hook.sh.j2
|
src: hook.sh.j2
|
||||||
dest: "{{ dehydrated_certs_dir }}/{{ item.name }}/hook.sh"
|
dest: "{{ dehydrated_certs_dir }}/{{ item.name }}/hook.sh"
|
||||||
with_items: dehydrated_domains
|
with_items: "{{ dehydrated_domains }}"
|
||||||
|
|
||||||
- name: Ensure Domains are in domains.txt
|
- name: Ensure Domains are in domains.txt
|
||||||
lineinfile:
|
lineinfile:
|
||||||
path: "{{ dehydrated_config_dir }}/domains.txt"
|
path: "{{ dehydrated_config_dir }}/domains.txt"
|
||||||
line: "{{ item.name }}{% for an in item.alternate_names %} {{ an|default(omit) }}{% endfor %}"
|
line: "{{ item.name }}{% if 'alternate_names' in item %}{% for an in item.alternate_names %} {{ an|default(omit) }}{% endfor %}{% endif %}"
|
||||||
with_items: dehydrated_domains
|
with_items: "{{ dehydrated_domains }}"
|
||||||
notify: dehydrated run
|
notify: dehydrated run
|
Loading…
Reference in a new issue