From e6e58a3fd378f29e5ac32bc841cdcf5a80c4cdd1 Mon Sep 17 00:00:00 2001 From: Philippe Caseiro Date: Mon, 13 Feb 2023 11:42:36 +0100 Subject: [PATCH] fix(haproxy): haproxy needs to be configured after the "services" --- tasks/main.yml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/tasks/main.yml b/tasks/main.yml index be5563c..7688536 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -54,15 +54,6 @@ ansible.builtin.include_tasks: hydra-database.yml when: not hydra_use_external_database -- name: Configure HAProxy - template: - src: haproxy.cfg.j2 - dest: /etc/haproxy/haproxy.cfg - validate: "haproxy -c -f %s" - notify: - - Restart HAProxy - become: true - - name: Create hydra-clients template: src: hydra-client.json.j2 @@ -121,4 +112,13 @@ - name: Stop OIDC Test app if disabled ansible.builtin.include_tasks: stop-oidc-test.yml - when: not enable_oidc_test_app \ No newline at end of file + when: not enable_oidc_test_app + +- name: Configure HAProxy + template: + src: haproxy.cfg.j2 + dest: /etc/haproxy/haproxy.cfg + validate: "haproxy -c -f %s" + notify: + - Restart HAProxy + become: true \ No newline at end of file