Fix(judgehost): fetch password

This commit is contained in:
2025-04-06 21:52:46 +08:00
parent 77392da592
commit bbd0e41760

View File

@@ -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: