]> git.immae.eu Git - github/fretlink/ansible-clever.git/commitdiff
deploy: don't launch commands in "async" mode.
authorPaul Bonaud <paul.bonaud@fretlink.com>
Thu, 22 Nov 2018 12:08:05 +0000 (13:08 +0100)
committerPaul Bonaud <paul.bonaud@fretlink.com>
Fri, 30 Nov 2018 13:45:11 +0000 (14:45 +0100)
Clever tools should exit with proper exit code.

tasks/deploy.yml

index cc150502698f195631354a890c18be0716295ef7..c03dd4de25cca48fc525a8b14b4bfc12034b7a19 100644 (file)
@@ -31,8 +31,6 @@
   environment:
     CONFIGURATION_FILE: "{{ clever_login_file }}"
   register: clever_deploy
-  async: 900 # 15 minutes timeout
-  poll: 30
   ignore_errors: true
   tags:
     - skip_ansible_lint
@@ -55,8 +53,6 @@
     CONFIGURATION_FILE: "{{ clever_login_file }}"
   when: clever_deploy is failed
   register: clever_deploy
-  async: 900 # 15 minutes timeout
-  poll: 30
   ignore_errors: true
   tags:
     - skip_ansible_lint
@@ -67,7 +63,7 @@
 
 - name: Return deployment errors
   debug:
-    var: clever_deploy.stderr
+    var: clever_deploy.stderr|default(clever_deploy)
   when: clever_deploy is failed
 
 - name: Fail on deployment errors