fix(): Adds failsafe to the check mode
This fixes the first deployment problem.
This commit is contained in:
parent
13b4974f0e
commit
226479495e
3 changed files with 4 additions and 1 deletions
|
@ -90,7 +90,7 @@ steps:
|
|||
check: true
|
||||
diff: true
|
||||
syntax_check: false
|
||||
extra_vars: "blog_container_tag=${DRONE_COMMIT_SHA:0:8}"
|
||||
extra_vars: "blog_container_tag=${DRONE_COMMIT_SHA:0:8},check_mode=true"
|
||||
private_key:
|
||||
from_secret: ansible_private_key
|
||||
user:
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
---
|
||||
check_mode: false
|
||||
|
||||
blog_container_tag: "latest"
|
||||
blog_http_port: 8080
|
||||
|
|
|
@ -31,3 +31,4 @@
|
|||
- assert:
|
||||
that:
|
||||
- output_blog.services.blog.blog.state.running
|
||||
when: not check_mode
|
||||
|
|
Loading…
Reference in a new issue