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

tweaks

parent 06c6ef6e
No related branches found
No related tags found
No related merge requests found
Pipeline #9824 failed
......@@ -43,12 +43,16 @@
src: ssl.conf.j2
dest: /etc/apache2/mods-available/ssl.conf
- name: Provision a Let's Encrypt cert
include_role:
name: acmesh
tasks_from: letsencrypt
vars:
common_name: "{{ inventory_hostname }}"
- name: Conditionally provision a Let's Encrypt cert using acmesh role
block:
- name: "Provision a Let's Encrypt cert for {{ inventory_hostname }}"
include_role:
name: acmesh
tasks_from: letsencrypt
vars:
common_name: "{{ inventory_hostname }}"
when:
- ( apache_cert.stat.exists == False )
- ( "ssl" in apache_mods_enabled )
......
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