diff --git a/tasks/main.yml b/tasks/main.yml index b208b52..6d9daf3 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -59,17 +59,17 @@ - name: 'migrate django im app' django_manage: command: migrate - app_path: "{{im_home}}" + app_path: "{{im_home}}/im" - name: 'create superjuser for django im app' django_manage: command: "createsuperuser --noinput --username=admin --email={{im_admin_email}}" - app_path: "{{im_home}}" + app_path: "{{im_home}}/im" - name: 'collect static content' django_manage: command: "collectstatic" - app_path: "{{im_home}}" + app_path: "{{im_home}}/im" - name: "Service im" service: diff --git a/templates/settings.py.j2 b/templates/settings.py.j2 index ce3d43f..d947778 100644 --- a/templates/settings.py.j2 +++ b/templates/settings.py.j2 @@ -26,7 +26,7 @@ SECRET_KEY = '{{im_secret_key}}' DEBUG = False ALLOWED_HOSTS = [ - {{im_domain}} + '{{im_domain}}' ] diff --git a/vars/main.yml b/vars/main.yml index 0f53958..533e394 100644 --- a/vars/main.yml +++ b/vars/main.yml @@ -1,13 +1,14 @@ --- # vars file for im im_home: /home/im -im_secret_key: "{{ lookup('password', im_home + '/.imsecretfile chars=ascii_letters' length=56) }}" +im_secret_key: "{{ lookup('password', im_home + '/.imsecretfile chars=ascii_letters length=56') }}" im_domain: 'localhost' im_db_name: 'im' im_db_user: 'im' im_user: 'im' im_db_server: 'localhost' im_db_port: '5432' +im_db_password: '' im_workers: 4 im_http_listen: 'localhost' im_http_port: 80