diff --git a/playbooks/groups/osbs/setup-orchestrator-namespace.yml b/playbooks/groups/osbs/setup-orchestrator-namespace.yml index b68704a970..3c31d8e3b0 100644 --- a/playbooks/groups/osbs/setup-orchestrator-namespace.yml +++ b/playbooks/groups/osbs/setup-orchestrator-namespace.yml @@ -166,18 +166,3 @@ file state=absent path="/tmp/.dockercfg" - -- name: Add the orchestrator labels to the nodes - hosts: osbs_masters_stg[0]:osbs_masters[0] - tags: - - osbs-labels-nodes - tasks: - - name: Add the orchestrator labels to the nodes - command: "oc -n {{ osbs_namespace }} label nodes {{ item }} orchestrator=true --overwrite" - loop: "{{ groups['osbs_nodes_stg'] }}" - when: env == "staging" - - - name: Add the orchestrator labels to the nodes - command: "oc -n {{ osbs_namespace }} label nodes {{ item }} orchestrator=true --overwrite" - loop: "{{ groups['osbs_nodes'] }}" - when: env == "production" diff --git a/playbooks/groups/osbs/setup-worker-namespace.yml b/playbooks/groups/osbs/setup-worker-namespace.yml index 149b7b15b3..1b94f9510e 100644 --- a/playbooks/groups/osbs/setup-worker-namespace.yml +++ b/playbooks/groups/osbs/setup-worker-namespace.yml @@ -76,31 +76,3 @@ file state=absent path="/tmp/.dockercfg" - -- name: Add the worker labels to the nodes x86_64 - hosts: osbs_masters_stg[0]:osbs_masters[0] - tags: - - osbs-labels-nodes - tasks: - - name: Add the worker label - command: "oc -n {{ osbs_worker_namespace }} label nodes {{ item }} worker=true --overwrite" - loop: "{{ groups['osbs_nodes_stg'] }}" - when: env == "staging" - - name: Add the worker label - command: "oc -n {{ osbs_worker_namespace }} label nodes {{ item }} worker=true --overwrite" - loop: "{{ groups['osbs_nodes'] }}" - when: env == "production" - -- name: Add the worker labels to the nodes aarch64 - hosts: osbs_aarch64_masters_stg[0]:osbs_aarch64_masters[0] - tags: - - osbs-labels-nodes - tasks: - - name: Add the worker label - command: "oc -n {{ osbs_worker_namespace }} label nodes {{ item }} worker=true --overwrite" - loop: "{{ groups['osbs-aarch64-nodes-stg'] }}" - when: env == "staging" - - name: Add the worker label - command: "oc -n {{ osbs_worker_namespace }} label nodes {{ item }} worker=true --overwrite" - loop: "{{ groups['osbs-aarch64-nodes'] }}" - when: env == "production"