From fffaf0e52dcf088b2c6b3f36c9584d17d679739f Mon Sep 17 00:00:00 2001 From: Michael Davies Date: Mon, 30 Nov 2015 20:24:42 +1030 Subject: [PATCH] Add update_src var --- defaults/main.yml | 3 +++ tasks/ironic_get_source.yml | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/defaults/main.yml b/defaults/main.yml index c29af9be..d6e837fd 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -19,6 +19,9 @@ debug: False verbose: True +# Update source +update_src: True + # Name of the virtual env to deploy into ironic_venv_tag: untagged ironic_venv_bin: "/openstack/venvs/ironic-{{ ironic_venv_tag }}/bin" diff --git a/tasks/ironic_get_source.yml b/tasks/ironic_get_source.yml index 8109a517..5c45a3bd 100644 --- a/tasks/ironic_get_source.yml +++ b/tasks/ironic_get_source.yml @@ -17,7 +17,7 @@ git: repo=https://github.com/openstack/ironic.git dest={{ ironic_git_dest }} version={{ ironic_git_install_branch }} - update=no + update={{ update_src }} register: ironic_checkout tags: - ironic-api @@ -27,7 +27,7 @@ git: repo=https://github.com/openstack/python-ironicclient.git dest={{ python_ironicclient_git_dest }} version={{ python_ironicclient_git_install_branch }} - update=no + update={{ update_src }} register: python_ironicclient_checkout tags: - ironic-client