iddev: another attempt to get the playbook to handle the certs automatically
Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
This commit is contained in:
parent
472b59038f
commit
0b7cae97a9
1 changed files with 12 additions and 0 deletions
|
@ -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 | '
|
||||
<VirtualHost *:80>
|
||||
ServerName iddev.fedorainfracloud.org
|
||||
ProxyPass "/.well-known/acme-challenge" "http://certgetter01/.well-known/acme-challenge"
|
||||
Redirect permanent / https://iddev.fedorainfracloud.org
|
||||
</VirtualHost>
|
||||
' > /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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue