From dc3b55b7633326ac7a24d1553423999c6e80d3e9 Mon Sep 17 00:00:00 2001 From: Kevin Carter Date: Tue, 19 Jan 2016 10:47:02 -0600 Subject: [PATCH] Added a variable so pkg-locations to be redefined This change adds a variable to the repo-build.yml play so that a deployer can redefine the locations for roles and user_variables. This is useful for downstream deployers whom may not co-locate their roles within the OSA deployment repository, the default Ansible role directory, or within the /etc/openstack_deploy configuration directory. Change-Id: I4a470536203da2b2da18adf1b436503a77b75ce9 Signed-off-by: Kevin Carter --- playbooks/repo-build.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/playbooks/repo-build.yml b/playbooks/repo-build.yml index 7c5419146e..920926246b 100644 --- a/playbooks/repo-build.yml +++ b/playbooks/repo-build.yml @@ -21,10 +21,7 @@ - name: Load local packages debug: msg: "Loading Packages" - with_py_pkgs: - - ../ - - /etc/ansible/roles - - /etc/openstack_deploy + with_py_pkgs: "{{ pkg_locations }}" register: local_packages tags: - repo-clone-repos @@ -44,3 +41,8 @@ repo_build_pip_extra_index: "https://pypi.python.org/simple" tags: - "repo-build" + vars: + pkg_locations: + - ../ + - /etc/ansible/roles + - /etc/openstack_deploy