[Patchew-devel] [PATCH] deploy: do not use docker_image force argument

Paolo Bonzini posted 1 patch 3 years, 5 months ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/patchew next tags/patchew/20201120135117.152330-1-pbonzini@redhat.com
scripts/playbooks/tasks/docker-deploy.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[Patchew-devel] [PATCH] deploy: do not use docker_image force argument
Posted by Paolo Bonzini 3 years, 5 months ago
Fixes the following warning:

[WARNING]: The "force" option will be removed in Ansible 2.12. Please use the "force_source", "force_absent" or
"force_tag" option instead, depending on what you want to force.
[DEPRECATION WARNING]: Param force is deprecated. See the module docs for more information. This feature will be
removed in version 2.12. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.

Both patchew.org and next.patchew.org are using Ansible 2.9, and force_absent
was added in 2.8.
---
 scripts/playbooks/tasks/docker-deploy.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/playbooks/tasks/docker-deploy.yml b/scripts/playbooks/tasks/docker-deploy.yml
index 2b239b1..2cd2f32 100644
--- a/scripts/playbooks/tasks/docker-deploy.yml
+++ b/scripts/playbooks/tasks/docker-deploy.yml
@@ -45,7 +45,7 @@
       - "--exclude=/venv"
 - name: Delete old docker image stash
   docker_image:
-    force: yes
+    force_absent: yes
     name: "patchew:{{ instance_name }}-prev"
     state: absent
 - name: Stash docker image
-- 
2.28.0

_______________________________________________
Patchew-devel mailing list
Patchew-devel@redhat.com
https://www.redhat.com/mailman/listinfo/patchew-devel