diff options
author | Paul Bonaud <paul.bonaud@fretlink.com> | 2018-11-30 15:30:15 +0100 |
---|---|---|
committer | Paul Bonaud <paul.bonaud@fretlink.com> | 2018-11-30 15:30:15 +0100 |
commit | 205abfefda3399b0eb1342b02ad549f767916204 (patch) | |
tree | b2e3205f05bbe601ae01a49a17b8563b4bd1570d | |
parent | 07b5852056556aff1bbb3e5945df57cc17b35fad (diff) | |
download | ansible-clever-fix-v1.10.tar.gz ansible-clever-fix-v1.10.tar.zst ansible-clever-fix-v1.10.zip |
fix(deploy): Make sure to execute clever commands in app_root dirfix-v1.10
-rw-r--r-- | tasks/deploy.yml | 6 |
1 files changed, 6 insertions, 0 deletions
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 @@ | |||
1 | - name: Configure Drain | 1 | - name: Configure Drain |
2 | when: syslog_server is defined or clever_syslog_server is defined | 2 | when: syslog_server is defined or clever_syslog_server is defined |
3 | command: clever-set-drain.sh | 3 | command: clever-set-drain.sh |
4 | args: | ||
5 | chdir: "{{ clever_app_root }}" | ||
4 | environment: | 6 | environment: |
5 | SYSLOG_UDP_SERVER: "{{ clever_syslog_server | default(syslog_server) }}" | 7 | SYSLOG_UDP_SERVER: "{{ clever_syslog_server | default(syslog_server) }}" |
6 | CONFIGURATION_FILE: "{{ clever_login_file }}" | 8 | CONFIGURATION_FILE: "{{ clever_login_file }}" |
@@ -8,12 +10,16 @@ | |||
8 | - name: Configure Domain | 10 | - name: Configure Domain |
9 | when: domain is defined or clever_domain is defined | 11 | when: domain is defined or clever_domain is defined |
10 | command: clever-set-domain.sh | 12 | command: clever-set-domain.sh |
13 | args: | ||
14 | chdir: "{{ clever_app_root }}" | ||
11 | environment: | 15 | environment: |
12 | DOMAIN: "{{ clever_domain | default(domain) }}" | 16 | DOMAIN: "{{ clever_domain | default(domain) }}" |
13 | CONFIGURATION_FILE: "{{ clever_login_file }}" | 17 | CONFIGURATION_FILE: "{{ clever_login_file }}" |
14 | 18 | ||
15 | - name: Push Environment | 19 | - name: Push Environment |
16 | shell: "clever env import < {{ clever_app_confdir }}/env" | 20 | shell: "clever env import < {{ clever_app_confdir }}/env" |
21 | args: | ||
22 | chdir: "{{ clever_app_root }}" | ||
17 | environment: | 23 | environment: |
18 | CONFIGURATION_FILE: "{{ clever_login_file }}" | 24 | CONFIGURATION_FILE: "{{ clever_login_file }}" |
19 | changed_when: false | 25 | changed_when: false |