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