From 68fbcbd52b648d4253350cbc918851e36546d4db Mon Sep 17 00:00:00 2001 From: Adam Miller Date: Sat, 25 Jun 2016 02:44:11 +0000 Subject: [PATCH] changing hosts listing to group and limiting with when Signed-off-by: Adam Miller --- playbooks/groups/osbs-master.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/playbooks/groups/osbs-master.yml b/playbooks/groups/osbs-master.yml index 1bf69b8725..212384ab6f 100644 --- a/playbooks/groups/osbs-master.yml +++ b/playbooks/groups/osbs-master.yml @@ -198,7 +198,7 @@ register: origin_version - name: pre-stage content in our docker registry - hosts: compose-x86-01.phx2.fedoraproject.org + hosts: releng-compose user: root gather_facts: True tags: @@ -208,14 +208,17 @@ - name: pull openshift required docker images shell: "docker pull {{item}}:v{{origin_version.stdout}}" with_items: "{{openshift_required_images}}" + when: inventory_hostname.startswith('compose-x86-01') - name: tag openshift required docker images for our registry shell: "docker tag {{item}}:v{{origin_version.stdout}} {{docker_registry}}/{{item}}:v{{origin_version.stdout}}" with_items: "{{openshift_required_images}}" + when: inventory_hostname.startswith('compose-x86-01') - name: push openshift required docker images to our registry shell: "docker push {{docker_registry}}/{{item}}:v{{origin_version.stdout}}" with_items: "{{openshift_required_images}}" + when: inventory_hostname.startswith('compose-x86-01') - name: post-install osbs tasks hosts: osbs:osbs-stg