From 03719384b883c2d230eedbb54797b0e2eaa55e54 Mon Sep 17 00:00:00 2001 From: flynn Date: Mon, 21 Jan 2019 22:05:50 +0100 Subject: [PATCH] execute process as cat user --- tasks/main.yml | 2 ++ 1 file changed, 2 insertions(+) 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 }}"