From f8e79eb4811fc2f5519fc705524efc156684c553 Mon Sep 17 00:00:00 2001 From: Alvaro Aleman Date: Mon, 12 Dec 2016 16:58:43 +0100 Subject: [PATCH] Fix changed event for docker_image in force mode --- lib/ansible/modules/cloud/docker/docker_image.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/ansible/modules/cloud/docker/docker_image.py b/lib/ansible/modules/cloud/docker/docker_image.py index 0c2938f9e5f..a5978fc5457 100644 --- a/lib/ansible/modules/cloud/docker/docker_image.py +++ b/lib/ansible/modules/cloud/docker/docker_image.py @@ -339,6 +339,8 @@ class ImageManager(DockerBaseClass): self.results['changed'] = True if not self.check_mode: self.results['image'] = self.client.pull_image(self.name, tag=self.tag) + if image and image == self.results['image']: + self.results['changed'] = False if self.archive_path: self.archive_image(self.name, self.tag)