From 205abfefda3399b0eb1342b02ad549f767916204 Mon Sep 17 00:00:00 2001 From: Paul Bonaud Date: Fri, 30 Nov 2018 15:30:15 +0100 Subject: fix(deploy): Make sure to execute clever commands in app_root dir --- tasks/deploy.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tasks/deploy.yml b/tasks/deploy.yml index 76da5d7..906ad61 100644 --- a/tasks/deploy.yml +++ b/tasks/deploy.yml @@ -1,6 +1,8 @@ - name: Configure Drain when: syslog_server is defined or clever_syslog_server is defined command: clever-set-drain.sh + args: + chdir: "{{ clever_app_root }}" environment: SYSLOG_UDP_SERVER: "{{ clever_syslog_server | default(syslog_server) }}" CONFIGURATION_FILE: "{{ clever_login_file }}" @@ -8,12 +10,16 @@ - name: Configure Domain when: domain is defined or clever_domain is defined command: clever-set-domain.sh + args: + chdir: "{{ clever_app_root }}" environment: DOMAIN: "{{ clever_domain | default(domain) }}" CONFIGURATION_FILE: "{{ clever_login_file }}" - name: Push Environment shell: "clever env import < {{ clever_app_confdir }}/env" + args: + chdir: "{{ clever_app_root }}" environment: CONFIGURATION_FILE: "{{ clever_login_file }}" changed_when: false -- cgit v1.2.3