mirror of
https://github.com/ansible/awx.git
synced 2026-02-27 07:56:06 -03:30
create_preload_data | bool in launch_awx_task.sh.j2
This commit is contained in:
@@ -24,7 +24,7 @@ fi
|
|||||||
|
|
||||||
if [ ! -z "$AWX_ADMIN_USER" ]&&[ ! -z "$AWX_ADMIN_PASSWORD" ]; then
|
if [ ! -z "$AWX_ADMIN_USER" ]&&[ ! -z "$AWX_ADMIN_PASSWORD" ]; then
|
||||||
echo "from django.contrib.auth.models import User; User.objects.create_superuser('$AWX_ADMIN_USER', 'root@localhost', '$AWX_ADMIN_PASSWORD')" | awx-manage shell
|
echo "from django.contrib.auth.models import User; User.objects.create_superuser('$AWX_ADMIN_USER', 'root@localhost', '$AWX_ADMIN_PASSWORD')" | awx-manage shell
|
||||||
{% if create_preload_data %}
|
{% if create_preload_data | bool %}
|
||||||
awx-manage create_preload_data
|
awx-manage create_preload_data
|
||||||
{% endif %}
|
{% endif %}
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user