From e5174cb1c6864618a56a39a0f56b536daa9b7462 Mon Sep 17 00:00:00 2001 From: flynn Date: Mon, 21 Jan 2019 22:20:07 +0100 Subject: [PATCH] add port to environment --- defaults/main.yml | 2 ++ tasks/main.yml | 1 + 2 files changed, 3 insertions(+) diff --git a/defaults/main.yml b/defaults/main.yml index e4f8e9a..82bb574 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -10,3 +10,5 @@ cat_postgres_user: cat_user cat_postgres_password: "{{ vault_cat_postgres_password }}" cat_git_destination: /home/{{ cat_user }}/cat_src + +port: 3000 diff --git a/tasks/main.yml b/tasks/main.yml index 95d84ac..be4653c 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -79,3 +79,4 @@ shell: java -jar {{cat_git_destination }}/target/uberjar/cat.jar environment: DATABASE_URL: "postgresql://localhost:5432/{{ cat_postgres_db }}?user={{ cat_postgres_user }}&password={{ cat_postgres_password }}" + PORT: "{{ port }}"