Commit 5822e8c1 authored by Oyvind.Gjesdal's avatar Oyvind.Gjesdal
Browse files

loop on templates, to add ssl for all templates

parent 1aede9d8
......@@ -147,16 +147,17 @@
- name: "Add apache vhosts ssl template"
template:
src: "{{ apache_vhosts_template_ssl }}"
dest: "{{ apache_conf_path }}/00_{{ apache_cert_vhost.servername }}_ssl.conf"
dest: "{{ apache_conf_path }}/00_{{ item.servername }}_ssl.conf"
owner: root
group: root
mode: 0644
backup: true
# validate: "apachectl configtest"
notify: restart apache
when: "apache_cert_vhost.ssl_type | default('certbot')== 'uib'"
when: "item.ssl_type | default('certbot')== 'uib'"
loop: "{{ apache_vhosts }}"
vars:
current_vhost: "{{ apache_cert_vhost.servername }}"
current_vhost: "{{ item.servername }}"
become: true
#- name: "get certificate url from ITA"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment