Commit a21bf8a8 authored by Oyvind.Gjesdal's avatar Oyvind.Gjesdal
Browse files

skip if not present

parent 0a512e60
......@@ -100,7 +100,7 @@
dest: "{{ apache_digicert_uib_archive }}//{{ item.servername }}/cert.cer"
backup: "yes"
mode: "0444"
when: "item.ssl_type | default('certbot')== 'uib'"
when: "item.ssl_type | default('certbot')== 'uib' and item.certificate_only_url is defined"
- name: "Get intermediate certs only"
loop: "{{ apache_vhosts }}"
......@@ -110,7 +110,7 @@
dest: "{{ apache_digicert_uib_archive }}//{{ item.servername }}/cert_interm.cer"
backup: "yes"
mode: "0444"
when: "item.ssl_type | default('certbot')== 'uib'"
when: "item.ssl_type | default('certbot')== 'uib' and item.certificate_interm_only_url is defined"
#- name: "concat cert and intermediate"
......@@ -151,7 +151,7 @@
backup: true
# validate: "apachectl configtest"
notify: restart apache
when: "item.ssl_type | default('certbot')== 'uib'"
when: "item.ssl_type | default('certbot')== 'uib' and item.certificate_only_url is defined"
loop: "{{ apache_vhosts }}"
vars:
current_vhost: "{{ item.servername }}"
......
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