diff options
Diffstat (limited to 'ansible/docker/build_ansible_image.sh')
-rwxr-xr-x | ansible/docker/build_ansible_image.sh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ansible/docker/build_ansible_image.sh b/ansible/docker/build_ansible_image.sh index 49833be5..a0eb775a 100755 --- a/ansible/docker/build_ansible_image.sh +++ b/ansible/docker/build_ansible_image.sh @@ -24,6 +24,9 @@ set -e ansible_version="$1" image_name="${2:-ansible:latest}" +# Override image name from env variable if set +image_name="${ANSIBLE_CHROOT_IMAGE_NAME:-$image_name}" + script_path=$(readlink -f "$0") script_dir=$(dirname "$script_path") @@ -47,4 +50,4 @@ else exit 1 fi -exit 0
\ No newline at end of file +exit 0 |