Skip to content

Commit 5263877

Browse files
committed
Support for startup commands
1 parent 0fe52af commit 5263877

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

roles/gameserver/tasks/game.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,3 +72,12 @@
7272
loop: "{{ ops }}"
7373
async: 30
7474
poll: 0
75+
when: ops is defined
76+
77+
- name: Execute startup commands
78+
shell: sleep 20 && ./broadcast_command.sh {{ item }}
79+
loop: "{{ startup_commands }}"
80+
async: 30
81+
poll: 0
82+
when: startup_commands is defined
83+

0 commit comments

Comments
 (0)