diff --git a/playbooks/hosts/iddev.fedorainfracloud.org.yml b/playbooks/hosts/iddev.fedorainfracloud.org.yml index fed359ea14..7c2185e595 100644 --- a/playbooks/hosts/iddev.fedorainfracloud.org.yml +++ b/playbooks/hosts/iddev.fedorainfracloud.org.yml @@ -21,6 +21,18 @@ - import_tasks: "{{ tasks_path }}/cloud_setup_basic.yml" - name: set hostname (required by some services, at least postfix need it) hostname: name="{{inventory_hostname}}" + - name: Add an apache config to proxy letsencrypt + shell: echo | ' + + ServerName iddev.fedorainfracloud.org + ProxyPass "/.well-known/acme-challenge" "http://certgetter01/.well-known/acme-challenge" + Redirect permanent / https://iddev.fedorainfracloud.org + + ' > /etc/httpd/conf.d/proxy_letsencrypt.conf + - name: reload apache + ansible.builtin.service: + name: httpd + state: reloaded - name: Letsencrypt for iddev.fedorainfracloud.org include_role: name=letsencrypt vars: