Closed blockloop closed 1 year ago
Temporary work around
- name: create app
failed_when: "'error' in image_pull.meta and 'No changes detected, skipping git commit' not in image_pull.meta.error"
register: image_pull
dokku_image:
app: &app nginx
image: docker.io/nginx
Description of problem
dokku_image does not appear to be idempotent like dokku_app. If you run an ansible play with dokku_image twice then it fails
How reproducible
Every time
Steps to Reproduce
The problem I think is that the
dokku git:from-image
command exits with a code of1
if the image is already up to dateMaybe dokku shouldn't exit 1 when the image is already up to date, but either way it halts the ansible playbook