execute process as cat user

This commit is contained in:
flynn 2019-01-21 22:05:50 +01:00
parent a093293704
commit 03719384b8

View file

@ -74,6 +74,8 @@
chdir: "{{ cat_git_destination }}" chdir: "{{ cat_git_destination }}"
- name: Run jar - name: Run jar
become: yes
become_user: "{{ cat_user }}"
shell: java -jar {{cat_git_destination }}/target/uberjar/cat.jar shell: java -jar {{cat_git_destination }}/target/uberjar/cat.jar
environment: environment:
DATABASE_URL: "postgresql://localhost:5432/{{ cat_postgres_db }}?user={{ cat_postgres_user }}&password={{ cat_postgres_password }}" DATABASE_URL: "postgresql://localhost:5432/{{ cat_postgres_db }}?user={{ cat_postgres_user }}&password={{ cat_postgres_password }}"