diff options
author | Paul Bonaud <paul.bonaud@fretlink.com> | 2018-09-28 11:14:12 +0200 |
---|---|---|
committer | Paul Bonaud <paul.bonaud@fretlink.com> | 2018-09-28 11:27:10 +0200 |
commit | 1157a45f9ca2f579b11462865271379d175127fc (patch) | |
tree | b4fdb60a3d47943f83391214c2a9b9a5835fc250 /tasks/deploy.yml | |
parent | da999d16b410b3b6892c4ffa692c1a860d1e2781 (diff) | |
download | ansible-clever-1157a45f9ca2f579b11462865271379d175127fc.tar.gz ansible-clever-1157a45f9ca2f579b11462865271379d175127fc.tar.zst ansible-clever-1157a45f9ca2f579b11462865271379d175127fc.zip |
domain: allow the domain to be specified via clever_domain variable
Every other variables are prefixed with `clever_` which makes the
definition of variables clearer from a "app" configuration point of
view.
WDYT?
Diffstat (limited to 'tasks/deploy.yml')
-rw-r--r-- | tasks/deploy.yml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tasks/deploy.yml b/tasks/deploy.yml index 4b3f48b..205eb2b 100644 --- a/tasks/deploy.yml +++ b/tasks/deploy.yml | |||
@@ -6,10 +6,10 @@ | |||
6 | CONFIGURATION_FILE: "{{ clever_login_file }}" | 6 | CONFIGURATION_FILE: "{{ clever_login_file }}" |
7 | 7 | ||
8 | - name: Configure Domain | 8 | - name: Configure Domain |
9 | when: domain is defined | 9 | when: domain is defined or clever_domain is defined |
10 | command: clever-set-domain.sh | 10 | command: clever-set-domain.sh |
11 | environment: | 11 | environment: |
12 | DOMAIN: "{{ domain }}" | 12 | DOMAIN: "{{ clever_domain | default(domain) }}" |
13 | CONFIGURATION_FILE: "{{ clever_login_file }}" | 13 | CONFIGURATION_FILE: "{{ clever_login_file }}" |
14 | 14 | ||
15 | - name: Push Environment | 15 | - name: Push Environment |