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.
This commit is contained in:
Moritz Maisel 2019-08-07 19:44:37 +02:00 committed by ansibot
parent 278044358c
commit 5a6003d0ed

View file

@ -361,6 +361,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