diff --git a/tasks/buildcerts.yml b/tasks/buildcerts.yml index d2e64504181ea88b4929190b1fe1107e10877aec..a119b53205d4b920f4891cc330079bc5bdf22e28 100644 --- a/tasks/buildcerts.yml +++ b/tasks/buildcerts.yml @@ -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" diff --git a/tasks/install.yml b/tasks/install.yml index e6f8ad293737b0c295a5d8231694a45ee0c0f3ce..fd74a69db890a18739407cfb353c4436de6a1825 100644 --- a/tasks/install.yml +++ b/tasks/install.yml @@ -17,8 +17,6 @@ - haproxy - hatop - socat - - php5 - - php5-mysql - name: "Proxy | create directories" file: diff --git a/tasks/main.yml b/tasks/main.yml index 23205e0bc93b3595d2293258d50e10876a186976..41b46dd5c26bb6c7da09095c7c77c223008f5b37 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -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'