Skip to content
Snippets Groups Projects
Commit d21c3e07 authored by jurgenhaas's avatar jurgenhaas
Browse files

Improve initial setup

parent df9d889e
No related branches found
No related tags found
No related merge requests found
......@@ -7,3 +7,5 @@
dest='/etc/haproxy/certs/{{ item.domain }}.pem'
regexp='(fullchain)|(privkey)\.pem'
with_items: '{{ proxy_certificates_letsencrypt|default([]) }}'
notify:
- "Proxy | Restart HAProxy"
......@@ -17,8 +17,6 @@
- haproxy
- hatop
- socat
- php5
- php5-mysql
- name: "Proxy | create directories"
file:
......
......@@ -5,6 +5,14 @@
set_fact: role_haproxy_started=true
tags: always
- block:
- include: install.yml
- include: configure.yml
tags: Config
when: '"haproxy" not in excluded_roles'
- block:
- name: "Install Certs"
......@@ -21,11 +29,3 @@
tags: Certs
when: '"letsencrypt" not in excluded_roles'
- block:
- include: install.yml
- include: configure.yml
tags: Config
when: '"haproxy" not in excluded_roles'
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