Fix(judgehost): fetch password
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user