From a01e2763494c50b15082289364d2f85d176cdd3b Mon Sep 17 00:00:00 2001 From: frinux Date: Wed, 7 Jun 2017 09:09:37 +0200 Subject: [PATCH] Consistent commands and application management (same user) --- tasks/manage.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tasks/manage.yml b/tasks/manage.yml index b74c8e0..4643875 100644 --- a/tasks/manage.yml +++ b/tasks/manage.yml @@ -1,6 +1,8 @@ --- - name: Executing commands + become_user: "{{ pm2_user }}" + become: yes environment: "{{ item.env | default(pm2_cmds_default_env) }}" shell: "pm2 {{ item.run }} {{ item.args | default() }}" register: pm2_cmd_result