diff options
author | Gaëtan Duchaussois <gaetan.duchaussois@fretlink.com> | 2018-09-21 12:25:48 +0200 |
---|---|---|
committer | Gaëtan Duchaussois <gaetan.duchaussois@fretlink.com> | 2018-09-21 12:25:48 +0200 |
commit | 7485b189faf61061027fbba06b7bdbe51c13a705 (patch) | |
tree | 510acca585b67fedaf5bf0821f5a78f7a813190c /tasks/deploy.yml | |
parent | 4eeb5deae31c0173f46d4a2d2a6835612157ced7 (diff) | |
download | ansible-clever-7485b189faf61061027fbba06b7bdbe51c13a705.tar.gz ansible-clever-7485b189faf61061027fbba06b7bdbe51c13a705.tar.zst ansible-clever-7485b189faf61061027fbba06b7bdbe51c13a705.zip |
add ansible-lint test and fix warning
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 54c04ac..5e773b4 100644 --- a/tasks/deploy.yml +++ b/tasks/deploy.yml | |||
@@ -16,13 +16,18 @@ | |||
16 | shell: "clever env import < {{ clever_app_confdir }}/env" | 16 | shell: "clever env import < {{ clever_app_confdir }}/env" |
17 | environment: | 17 | environment: |
18 | CONFIGURATION_FILE: "{{ clever_login_file }}" | 18 | CONFIGURATION_FILE: "{{ clever_login_file }}" |
19 | changed_when: false | ||
19 | 20 | ||
20 | #TODO: Improve ssh-key validation | 21 | #TODO: Improve ssh-key validation |
21 | - name: Accept Clever-Cloud servers | 22 | - name: Accept Clever-Cloud servers |
22 | shell: "ssh-keyscan -H push-par-clevercloud-customers.services.clever-cloud.com >> ~/.ssh/known_hosts" | 23 | shell: "ssh-keyscan -H push-par-clevercloud-customers.services.clever-cloud.com >> ~/.ssh/known_hosts" |
24 | tags: | ||
25 | - skip_ansible_lint | ||
23 | 26 | ||
24 | - name: Push to Clever-Cloud to trigger deployment | 27 | - name: Push to Clever-Cloud to trigger deployment |
25 | command: "git push --force git+ssh://git@push-par-clevercloud-customers.services.clever-cloud.com/{{ clever_app }}.git HEAD:refs/heads/master" | 28 | command: "git push --force git+ssh://git@push-par-clevercloud-customers.services.clever-cloud.com/{{ clever_app }}.git HEAD:refs/heads/master" |
29 | tags: | ||
30 | - skip_ansible_lint | ||
26 | 31 | ||
27 | - name: Watch deployment status | 32 | - name: Watch deployment status |
28 | command: clever-wait-deploy.sh | 33 | command: clever-wait-deploy.sh |
@@ -31,6 +36,7 @@ | |||
31 | register: long_command | 36 | register: long_command |
32 | environment: | 37 | environment: |
33 | CONFIGURATION_FILE: "{{ clever_login_file }}" | 38 | CONFIGURATION_FILE: "{{ clever_login_file }}" |
39 | changed_when: False | ||
34 | 40 | ||
35 | # Waits up to 15 minutes | 41 | # Waits up to 15 minutes |
36 | - name: Wait for deployment completion | 42 | - name: Wait for deployment completion |