Skip to content
Snippets Groups Projects
Commit ed691a2e authored by Chris Croome's avatar Chris Croome
Browse files

Check for 404 for md status

parent 60df244b
No related branches found
No related tags found
No related merge requests found
Pipeline #17700 passed
......@@ -6,7 +6,9 @@
uri:
url: "http://localhost/md-status/{{ apache_mdomain }}"
return_content: true
status_code: 200
status_code:
- 200
- 404
check_mode: false
register: apache_mdomain_status
......@@ -24,6 +26,7 @@
set_fact:
apache_md_private_keys_present: "{{ apache_md_private_keys_present }} + [ 'rsa3072' ]"
when:
- ( apache_mdomain_status.status != 404 )
- ( apache_mdomain_status.json.name is defined )
- ( apache_mdomain_status.json.name | regex_replace('^"') | regex_replace('"$') ) == apache_mdomain
- ( apache_mdomain_status.json.cert is defined )
......@@ -34,6 +37,7 @@
set_fact:
apache_md_private_keys_present: "{{ apache_md_private_keys_present }} + [ 'secp384r1' ]"
when:
- ( apache_mdomain_status.status != 404 )
- ( apache_mdomain_status.json.name is defined )
- ( apache_mdomain_status.json.name | regex_replace('^"') | regex_replace('"$') ) == apache_mdomain
- ( apache_mdomain_status.json.cert is defined )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment