mirror of
https://github.com/ansible/awx.git
synced 2026-05-10 02:47:36 -02:30
Change the way we sync, add notes about superuser setup.
This commit is contained in:
3
Makefile
3
Makefile
@@ -15,6 +15,9 @@ setup:
|
|||||||
# use ansible to ansible ansible commander locally
|
# use ansible to ansible ansible commander locally
|
||||||
ansible-playbook app_setup/setup.yml --verbose -i "127.0.0.1," -c local -e working_dir=`pwd`
|
ansible-playbook app_setup/setup.yml --verbose -i "127.0.0.1," -c local -e working_dir=`pwd`
|
||||||
|
|
||||||
|
adduser:
|
||||||
|
python manage.py createsuperuser
|
||||||
|
|
||||||
syncdb:
|
syncdb:
|
||||||
# only run from initial setup
|
# only run from initial setup
|
||||||
python manage.py syncdb
|
python manage.py syncdb
|
||||||
|
|||||||
4
SETUP.md
4
SETUP.md
@@ -35,6 +35,10 @@ This playbook will:
|
|||||||
You may run this setup step again as needed as many times
|
You may run this setup step again as needed as many times
|
||||||
as you like.
|
as you like.
|
||||||
|
|
||||||
|
Before you login, you must also run "make adduser" to create
|
||||||
|
a superuser. This will allow you to login to the app. There
|
||||||
|
is no default user.
|
||||||
|
|
||||||
Test the server
|
Test the server
|
||||||
===============
|
===============
|
||||||
|
|
||||||
|
|||||||
@@ -50,9 +50,7 @@
|
|||||||
template: src=templates/local_settings.py.j2 dest=${working_dir}/lib/settings/local_settings.py
|
template: src=templates/local_settings.py.j2 dest=${working_dir}/lib/settings/local_settings.py
|
||||||
|
|
||||||
- name: sync django database
|
- name: sync django database
|
||||||
django_manage: >
|
command: python ${working_dir}/manage.py syncdb --noinput
|
||||||
command=syncdb
|
|
||||||
app_path=${working_dir}
|
|
||||||
|
|
||||||
- name: run south migrations
|
- name: run south migrations
|
||||||
command: python ${working_dir}/manage.py migrate main
|
command: python ${working_dir}/manage.py migrate main
|
||||||
|
|||||||
Reference in New Issue
Block a user