From 8fa722d36b5381679a0f81b015702aa53587cb8f Mon Sep 17 00:00:00 2001 From: Johan Guldmyr Date: Thu, 30 Jun 2016 13:11:36 +0300 Subject: [PATCH] skip submit.yml task file on compute and service nodes - submit.yml only sets up munged. compute.yml and service.yml already takes care of munge. --- README.md | 3 ++- tasks/main.yml | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index b9be8a5..e957610 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,8 @@ All variables should be defined in defaults/main.yml All nodes run munge. Nodes which are part of the slurm\_compute host group will additionally run slurmd. Nodes which are part of the slurm\_service host group will additionally runs slurmctld and -slurmdbd. +slurmdbd. Nodes which are in neither of these two host groups are +assumed to be submit hosts. You also need to add a mysql\_slurm_password: "PASSWORD" string somewhere. This will be used to set a password for the slurm mysql diff --git a/tasks/main.yml b/tasks/main.yml index cc79b6a..c160298 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -28,4 +28,4 @@ when: "'slurm_compute' in group_names and ansible_os_family == 'RedHat'" - include: submit.yml - when: ansible_os_family == "RedHat" + when: "(ansible_os_family == 'RedHat') and ('slurm_compute' not in group_names) and ('slurm_service' not in group_names)"