- command: "git push --force git+ssh://git@push-par-clevercloud-customers.services.clever-cloud.com/{{ clever_app }}.git HEAD:refs/heads/master"
- args:
- chdir: "{{ clever_app_root }}"
- when:
- - clever_deploy is failed
- - clever_deploy.stderr is defined
- - clever_deploy.stderr is search("Failed to read git object")
- register: clever_deploy
- tags:
- - skip_ansible_lint
-
-##############################################################################
-# Poll deployment status from 'clever activity' command. #
-# 'clever deploy' command is not yet 100% reliable to get a blocking command #
-# until the deployment is over. Hence the need for a custom waiting script. #
-##############################################################################
-
-- name: Watch deployment status
- command: "{{ ansible_env.HOME }}/{{ clever_user_path }}/clever-wait-deploy.sh"