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:
parent
278044358c
commit
5a6003d0ed
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue