diff --git a/tasks/main.yml b/tasks/main.yml index 3fb576e..95d84ac 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -74,6 +74,8 @@ chdir: "{{ cat_git_destination }}" - name: Run jar + become: yes + become_user: "{{ cat_user }}" 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 }}"