fix misleading example in docker_image doc (#60207) (#60231)

Using docker_image to tag an image as "latest" only updates an existing
tag when used with "force_tag: yes" option. As "latest" is present in
most cases, the option is added to the example to prevent unexpected
behaviour.

(cherry picked from commit 5a6003d0ed)
pull/60236/head
Felix Fontein 6 years ago committed by Alicia Cozine
parent 978dd9f541
commit 2a862ee82e

@ -349,6 +349,8 @@ EXAMPLES = '''
docker_image:
name: myimage:7.1.2
repository: myimage:latest
# As 'latest' usually already is present, we need to enable overwriting of existing tags:
force_tag: yes
source: local
- name: Remove image

Loading…
Cancel
Save