Commit 32451f43 authored by Oyvind.Gjesdal's avatar Oyvind.Gjesdal
Browse files

add csr by mail

parent fac6ab9f
......@@ -47,7 +47,7 @@
- name: "generate an OpenSSL Certificate Signin request"
openssl_csr:
backup: "yes"
path: "{{ apache_digicert_uib_home }}/csr//{{ item.servername }}.csr"
path: "{{ apache_digicert_uib_home }}/csr/{{ item.servername }}.csr"
privatekey_path: "{{ apache_digicert_uib_home }}/archive/{{ item.servername }}/priv_key.pem"
country_name: "NO"
organization_name: "Universitetet_i_Bergen"
......@@ -55,6 +55,13 @@
loop: "{{ apache_vhosts }}"
when: "item.ssl_type | default('certbot')== 'uib'"
- name: "send csr file by mail"
mail:
subject: "csr certificate request for {{ item.servername }}"
to: "{{ item.serveradmin }}"
attach:
- "{{ apache_digicert_uib_home }}/csr/{{ item.servername }}.csr"
#- name: "get certificate url from ITA"
# prompt_vars:
# get_url:
......
Supports Markdown
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