]> git.immae.eu Git - github/fretlink/ansible-clever.git/commitdiff
fix(deploy): Make sure to execute clever commands in app_root dir 26/head
authorPaul Bonaud <paul.bonaud@fretlink.com>
Fri, 30 Nov 2018 14:30:15 +0000 (15:30 +0100)
committerPaul Bonaud <paul.bonaud@fretlink.com>
Fri, 30 Nov 2018 15:31:57 +0000 (16:31 +0100)
tasks/deploy.yml
tasks/login.yml

index 84ebe737b8bc3c6a64094c928dab841bf72141d7..3bd74ee4b4bea80fc5a577143733844a9961f344 100644 (file)
@@ -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 }}"
 - 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
index bed5dbc5565b16c4a4d17063eb0bc8be38546651..86ba714718165e9ebca53f48dd03a3c3306e567e 100644 (file)
@@ -12,6 +12,7 @@
 - name: Link app
   command: clever link {{ clever_app }}
   args:
+    chdir: "{{ clever_app_root }}"
     creates: "{{ clever_app_root }}/.clever.json"
   environment:
     CONFIGURATION_FILE: "{{ clever_login_file }}"