From c5a3f320f7413574387c79b62ebe1038ffa4a835 Mon Sep 17 00:00:00 2001 From: arnaudfroidmont Date: Fri, 9 Dec 2022 16:17:31 -0700 Subject: [PATCH] Move handlers run after the topology config --- playbooks/roles/slurm/tasks/server.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/playbooks/roles/slurm/tasks/server.yml b/playbooks/roles/slurm/tasks/server.yml index 0f75132e..2c751f6c 100755 --- a/playbooks/roles/slurm/tasks/server.yml +++ b/playbooks/roles/slurm/tasks/server.yml @@ -154,9 +154,6 @@ notify: restart slurm server when: initial | bool -- name: run handlers - meta: flush_handlers - - name: add alias for node status lineinfile: path: '/home/{{ ansible_user }}/.bashrc' @@ -191,6 +188,10 @@ run_once: true notify: reconfigure slurm + +- name: run handlers + meta: flush_handlers + - name: Generate a list of types to check vars: temp_list: "{% for partition in queues %}{% for instancetype in partition.instance_types %}{{partition.name}}-{{instancetype.instance_keyword}},{% endfor %}{% endfor %}"