diff options
Diffstat (limited to 'tasks/deploy.yml')
-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 84ebe73..3bd74ee 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 |