Skip to content

Commit c57d0b4

Browse files
committed
We know CPU_0 exists
1 parent 2bf48c2 commit c57d0b4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

icpc-wf/ansible/judgehost.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,15 @@
4343
pre_tasks:
4444
- name: Get current services
4545
service_facts:
46+
- name: Print all available facts
47+
ansible.builtin.debug:
48+
var: ansible_facts
4649
- name: Disable all cores
4750
service:
4851
name="domjudge-judgedaemon@{{item}}"
4952
state=stopped
5053
with_sequence: start=0 end={{ ansible_processor_vcpus }} format=domjudge-judgedaemon@%1x
51-
when: domjudge-judgedaemon@%1x in services
54+
when: domjudge-judgedaemon@0 in services
5255
tasks:
5356
- name: add autostart shortcuts
5457
template:

0 commit comments

Comments
 (0)