fix misleading example in docker_image doc (#60207)

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.
pull/60207/merge
Moritz Maisel 5 years ago committed by ansibot
parent 278044358c
commit 5a6003d0ed

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

Loading…
Cancel
Save