From 0dc3cc4db4ca115944b029f88a1c67c2da3f8847 Mon Sep 17 00:00:00 2001 From: don sizemore Date: Wed, 16 Mar 2016 09:23:59 -0400 Subject: [PATCH] #6 condor boxen docker login to private repo for custom app images --- ansible/roles/condor/tasks/main.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/ansible/roles/condor/tasks/main.yml b/ansible/roles/condor/tasks/main.yml index 574613b34..0caf39d3a 100644 --- a/ansible/roles/condor/tasks/main.yml +++ b/ansible/roles/condor/tasks/main.yml @@ -1,5 +1,20 @@ --- +- debug: msg="Docker prereqs to use private repo for custom app images." + +- name: ensure docker-python installed for ansible module + yum: name=docker-python state=latest + tags: docker + +- name: login to private Docker remote registry + docker_login: + registry: "{{ docker.registry.base }}" + username: "{{ docker.registry.user }}" + password: "{{ docker.registry.pass }}" + tags: docker + +- debug: msg="and now on to Condor installation." + - name: Condor likes Java yum: name=java-1.8.0-openjdk-headless state=latest when: ansible_distribution == "CentOS" and