diff --git a/defaults/main.yml b/defaults/main.yml index 5695f05..6a34953 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -10,7 +10,7 @@ cat_postgres_password: "{{ vault_cat_postgres_password }}" cat_git_destination: "/home/{{ cat_user }}/cat_src" -port: 3000 +cat_app_port: 3000 authorize-uri: "https://adams.ugent.be/oauth/oauth2/authorize/" access-token-uri: "https://adams.ugent.be/oauth/oauth2/token/" diff --git a/tasks/main.yml b/tasks/main.yml index 3bccea6..ddc1713 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -20,7 +20,7 @@ name: "{{ packages }}" vars: packages: - - psycopg2 + - python-psycopg2 - postgres-9.6 - name: Create database diff --git a/templates/start.sh b/templates/start.sh index 72298d6..2c6d189 100644 --- a/templates/start.sh +++ b/templates/start.sh @@ -3,7 +3,7 @@ # Run the java jar DATABASE_URL="postgresql://localhost:5432/{{ cat_postgres_db }}?user={{ cat_postgres_user }}&password={{ cat_postgres_password }}" -PORT="{{ port }}" +PORT="{{ cat_app_port }}" AUTHORIZE-URI="{{ authorize_uri }}" ACCESS-TOKEN-URI="{{ access-token-uri }}" OAUTH-CONSUMER-KEY="{{ OAUTH-CONSUMER-KEY }}"