execute process as cat user

This commit is contained in:
flynn 2019-01-21 22:05:50 +01:00
parent a093293704
commit 03719384b8
1 changed files with 2 additions and 0 deletions

View File

@ -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 }}"