diff options
author | Paul Bonaud <paul.bonaud@fretlink.com> | 2018-11-22 13:08:05 +0100 |
---|---|---|
committer | Paul Bonaud <paul.bonaud@fretlink.com> | 2018-11-30 14:45:11 +0100 |
commit | 4086887878bf9c799435456e65267121d1011629 (patch) | |
tree | e766b2f6d63f9690d8a1d16481f7a9cc1893dfa2 /tasks/deploy.yml | |
parent | 03b8b295844a49e73e20573ff12476ded38bb404 (diff) | |
download | ansible-clever-4086887878bf9c799435456e65267121d1011629.tar.gz ansible-clever-4086887878bf9c799435456e65267121d1011629.tar.zst ansible-clever-4086887878bf9c799435456e65267121d1011629.zip |
deploy: don't launch commands in "async" mode.
Clever tools should exit with proper exit code.
Diffstat (limited to 'tasks/deploy.yml')
-rw-r--r-- | tasks/deploy.yml | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/tasks/deploy.yml b/tasks/deploy.yml index cc15050..c03dd4d 100644 --- a/tasks/deploy.yml +++ b/tasks/deploy.yml | |||
@@ -31,8 +31,6 @@ | |||
31 | environment: | 31 | environment: |
32 | CONFIGURATION_FILE: "{{ clever_login_file }}" | 32 | CONFIGURATION_FILE: "{{ clever_login_file }}" |
33 | register: clever_deploy | 33 | register: clever_deploy |
34 | async: 900 # 15 minutes timeout | ||
35 | poll: 30 | ||
36 | ignore_errors: true | 34 | ignore_errors: true |
37 | tags: | 35 | tags: |
38 | - skip_ansible_lint | 36 | - skip_ansible_lint |
@@ -55,8 +53,6 @@ | |||
55 | CONFIGURATION_FILE: "{{ clever_login_file }}" | 53 | CONFIGURATION_FILE: "{{ clever_login_file }}" |
56 | when: clever_deploy is failed | 54 | when: clever_deploy is failed |
57 | register: clever_deploy | 55 | register: clever_deploy |
58 | async: 900 # 15 minutes timeout | ||
59 | poll: 30 | ||
60 | ignore_errors: true | 56 | ignore_errors: true |
61 | tags: | 57 | tags: |
62 | - skip_ansible_lint | 58 | - skip_ansible_lint |
@@ -67,7 +63,7 @@ | |||
67 | 63 | ||
68 | - name: Return deployment errors | 64 | - name: Return deployment errors |
69 | debug: | 65 | debug: |
70 | var: clever_deploy.stderr | 66 | var: clever_deploy.stderr|default(clever_deploy) |
71 | when: clever_deploy is failed | 67 | when: clever_deploy is failed |
72 | 68 | ||
73 | - name: Fail on deployment errors | 69 | - name: Fail on deployment errors |