From 6cfe5732632ab50a319033d6b105f3f98651b442 Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Fri, 14 Oct 2016 21:32:54 +0000 Subject: [PATCH] try importing the openshift ansible repo and roles to use with oour osbs --- roles/ansible-server/templates/ansible.cfg.j2 | 2 +- roles/batcave/tasks/main.yml | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/roles/ansible-server/templates/ansible.cfg.j2 b/roles/ansible-server/templates/ansible.cfg.j2 index 642ce05f79..7242eab441 100644 --- a/roles/ansible-server/templates/ansible.cfg.j2 +++ b/roles/ansible-server/templates/ansible.cfg.j2 @@ -37,7 +37,7 @@ display_args_to_stdout = True gathering = smart # additional paths to search for roles in, colon separated -roles_path = {{ ansible_base }}/ansible/roles +roles_path = {{ ansible_base }}/ansible/roles:{{ ansible_base }}/openshift-ansible/roles # uncomment this to disable SSH key host checking #host_key_checking = False diff --git a/roles/batcave/tasks/main.yml b/roles/batcave/tasks/main.yml index 7d09d537df..11d888c350 100644 --- a/roles/batcave/tasks/main.yml +++ b/roles/batcave/tasks/main.yml @@ -453,3 +453,15 @@ - selinux - httpd - httpd/website + +# +# We setup some external ansible repos here to use for complex applications we deploy +# +- name: local clone of openshift ansible repo + git: > + refspec=c8683028b1c8228a531fac5f1753ff2698b316fc + dest=/srv/web/infra/openshift-ansible + repo=https://github.com/openshift/openshift-ansible + tags: + - config + - batcave