Rework installer to support local minishift environment

This also adds an option to *not* use the local container for building
the software distribution which is required for a local minishift
environment based install
This commit is contained in:
Matthew Jones
2017-09-15 23:08:57 -04:00
parent 9cbe2faed6
commit 27d5eb4ef9
2 changed files with 22 additions and 3 deletions

View File

@@ -59,8 +59,9 @@
tag: "{{ awx_version }}"
force: true
delegate_to: localhost
when: use_container_for_build|bool
- name: Build AWX distribution
- name: Build AWX distribution using container
docker_container:
env:
http_proxy: "{{ http_proxy | default('') }}"
@@ -73,6 +74,14 @@
volumes:
- ../:/awx:Z
delegate_to: localhost
when: use_container_for_build|bool
- name: Build AWX distribution locally
shell: make sdist
args:
chdir: ..
delegate_to: localhost
when: not use_container_for_build|bool
- name: Set docker build base path
set_fact: