Maybe this should be using a loop

Signed-off-by: Clement Verna <cverna@tutanota.com>
This commit is contained in:
Clement Verna 2018-05-10 21:09:45 +02:00
parent d49f0cdf21
commit 219b2d78b9

View file

@ -481,11 +481,11 @@
tasks:
- name: Add the worker label
command: "oc -n {{ osbs_worker_namespace }} label nodes {{ item }} worker=true --overwrite"
with_items: groups['osbs-nodes-stg']
loop: "{{ groups['osbs-nodes-stg'] }}"
- name: Add the orchestrator labels to the nodes
command: "oc -n {{ osbs_namespace }} label nodes {{ item }} orchestrator=true --overwrite"
with_items: groups['osbs-nodes-stg']
loop: "{{ groups['osbs-nodes-stg'] }}"
- name: setup reactor config secret in orchestrator namespace
hosts: osbs-masters-stg[0]