From 0be3e4277c79aac9f9f28d2adfd5ff589d3afbe9 Mon Sep 17 00:00:00 2001 From: micafer Date: Tue, 5 Dec 2023 16:20:45 +0100 Subject: [PATCH] Fix fetch --- tasks/wn.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tasks/wn.yaml b/tasks/wn.yaml index 3de0820..389fbb3 100644 --- a/tasks/wn.yaml +++ b/tasks/wn.yaml @@ -11,6 +11,7 @@ - name: Copy slurm.conf to the master fetch: src="{{ SLURM_CONF_DIR }}/slurm.conf" dest="/tmp/slurm.conf" flat=yes + delegate_to: "{{slurm_server_name}}" - name: copy slurm.conf file from the frontend copy: src=/tmp/slurm.conf dest={{ SLURM_CONF_DIR }}/slurm.conf force=yes @@ -18,6 +19,7 @@ - name: Copy cgroup.conf to the master fetch: src="{{ SLURM_CONF_DIR }}/cgroup.conf" dest="/tmp/cgroup.conf" flat=yes when: "slurm_version is version('22.0.0', '>=')" + delegate_to: "{{slurm_server_name}}" - name: copy cgroup.conf file from the frontend copy: src=/tmp/cgroup.conf dest={{ SLURM_CONF_DIR }}/cgroup.conf force=yes @@ -26,6 +28,7 @@ - name: Copy gres.conf to the master fetch: src="{{ SLURM_CONF_DIR }}/gres.conf" dest="/tmp/gres.conf" flat=yes when: slurm_wn_gres != "" + delegate_to: "{{slurm_server_name}}" - name: copy gres.conf file from the frontend copy: src=/tmp/gres.conf dest={{ SLURM_CONF_DIR }}/gres.conf force=yes