From c180d0a679bf6b1fbebe09c6e1e99f235d2d18c1 Mon Sep 17 00:00:00 2001 From: Clement Verna Date: Thu, 10 May 2018 20:58:03 +0200 Subject: [PATCH] Fixing the syntax Signed-off-by: Clement Verna --- playbooks/groups/osbs-cluster.yml | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/playbooks/groups/osbs-cluster.yml b/playbooks/groups/osbs-cluster.yml index 7e03dbccd8..c3cbc9af33 100644 --- a/playbooks/groups/osbs-cluster.yml +++ b/playbooks/groups/osbs-cluster.yml @@ -473,22 +473,19 @@ tags: - osbs-orchestrator-namespace -- name: Add the worker labels to the nodes + +- name: Add the worker/orchestrator labels to the nodes hosts: osbs-masters-stg[0] tags: - - worker-labels-nodes + - osbs-labels-nodes tasks: - command: "oc -n {{ osbs_worker_namespace }} nodes {{ item }} worker=true --overwrite" - with_items: groups['osbs-nodes-stg'] + - name: Add the worker label + command: "oc -n {{ osbs_worker_namespace }} nodes {{ item }} worker=true --overwrite" + with_items: groups['osbs-nodes-stg'] - -- name: Add the orchestrator labels to the nodes - hosts: osbs-masters-stg[0] - tags: - - orchestrator-labels-nodes - tasks: - command: "oc -n {{ osbs_namespace }} nodes {{ item }} orchestrator=true --overwrite" - with_items: groups['osbs-nodes-stg'] + - name: Add the orchestrator labels to the nodes + command: "oc -n {{ osbs_namespace }} nodes {{ item }} orchestrator=true --overwrite" + with_items: groups['osbs-nodes-stg'] - name: setup reactor config secret in orchestrator namespace hosts: osbs-masters-stg[0]