From 05a51ae31e5c7f62b17953c7a78384c2ae4135cd Mon Sep 17 00:00:00 2001 From: Chris Hines <chris.hines@monash.edu> Date: Thu, 4 Jun 2015 06:20:25 +0000 Subject: [PATCH] fix some use of conditional variables --- roles/slurm-from-source/tasks/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/slurm-from-source/tasks/main.yml b/roles/slurm-from-source/tasks/main.yml index 02a3b6eb..b5a4ac26 100644 --- a/roles/slurm-from-source/tasks/main.yml +++ b/roles/slurm-from-source/tasks/main.yml @@ -120,7 +120,7 @@ - name: install gres config file template: src=gres.conf.j2 dest={{ slurm_dir }}/etc/gres.conf mode=644 sudo: true - when: slurm_generic_resource.stdout + when: slurm_generic_resource is defined and slurm_generic_resource.stdout - name: install gres sub config file template: src=gres_sub.conf.j2 dest={{ slurm_dir }}/etc/gres/gres.conf mode=644 @@ -131,7 +131,7 @@ template: src=slurm.conf.j2 dest={{ slurm_dir }}/etc/slurm.conf sudo: true notify: restart slurm - when: slurm_use_vpn==False and slurm_gres_list is defined + when: slurm_use_vpn==False - name: install slurm.conf template: src=slurm-vpn.conf.j2 dest={{ slurm_dir }}/etc/slurm.conf -- GitLab