From bbd0e41760022a899377eb13ba74cf3ae3fe7153 Mon Sep 17 00:00:00 2001 From: Yi-Ting Shih Date: Sun, 6 Apr 2025 21:52:46 +0800 Subject: [PATCH] Fix(judgehost): fetch password --- roles/configure_judgehost/tasks/main.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/roles/configure_judgehost/tasks/main.yml b/roles/configure_judgehost/tasks/main.yml index c7ca0e2..328aaa9 100644 --- a/roles/configure_judgehost/tasks/main.yml +++ b/roles/configure_judgehost/tasks/main.yml @@ -18,12 +18,13 @@ command: >- sed -nr 's/^.*\W+judgehost\W+(.+)$/\1/p' /opt/domjudge/domserver/etc/restapi.secret + delegate_to: domserver[0] + run_once: true register: fetch_reg - name: Set judgehost facts ansible.builtin.set_fact: domserver_url: "{{ domserver_url }}" judgehost_password: "{{ fetch_reg['stdout'] }}" - delegate_to: domserver[0] run_once: true - name: Show judgehost password ansible.builtin.debug: