[Patchew-devel] [PATCH] deploy: do not use docker_image force argument
Paolo Bonzini
pbonzini at redhat.com
Fri Nov 20 13:51:17 UTC 2020
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
More information about the Patchew-devel
mailing list