From d9e09f482d647249349b4ae115db38a1c07a4d76 Mon Sep 17 00:00:00 2001 From: tp48cf Date: Wed, 26 Aug 2020 15:56:01 +0200 Subject: [PATCH] allow skipping provision instance and register queue --- installer/roles/image_build/templates/launch_awx_task.sh.j2 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/installer/roles/image_build/templates/launch_awx_task.sh.j2 b/installer/roles/image_build/templates/launch_awx_task.sh.j2 index dd54af5b3e..17655c6699 100755 --- a/installer/roles/image_build/templates/launch_awx_task.sh.j2 +++ b/installer/roles/image_build/templates/launch_awx_task.sh.j2 @@ -12,7 +12,13 @@ ANSIBLE_REMOTE_TEMP=/tmp ANSIBLE_LOCAL_TEMP=/tmp ansible -i "127.0.0.1," -c loca if [ -z "$AWX_SKIP_MIGRATIONS" ]; then awx-manage migrate --noinput +fi + +if [ -z "$AWX_SKIP_PROVISION_INSTANCE" ]; then awx-manage provision_instance --hostname=$(hostname) +fi + +if [ -z "$AWX_SKIP_REGISTERQUEUE" ]; then awx-manage register_queue --queuename=tower --instance_percent=100 fi