mirror of
https://github.com/ansible/awx.git
synced 2026-05-08 01:47:35 -02:30
Explanation for image removal block and idiomatic handling of var that enables it
This commit is contained in:
@@ -1,5 +1,8 @@
|
|||||||
---
|
---
|
||||||
- name: Remove local images to ensure proper push behavior
|
- name: Remove local images to ensure proper push behavior
|
||||||
|
# TODO: this code will not be necessary if and when docker_image can be configured to push if the image
|
||||||
|
# Already exists locally
|
||||||
|
# Pull request: https://github.com/ansible/ansible/pull/31863
|
||||||
block:
|
block:
|
||||||
- name: Remove web image
|
- name: Remove web image
|
||||||
docker_image:
|
docker_image:
|
||||||
@@ -13,7 +16,7 @@
|
|||||||
tag: "{{ awx_version }}"
|
tag: "{{ awx_version }}"
|
||||||
state: absent
|
state: absent
|
||||||
delegate_to: localhost
|
delegate_to: localhost
|
||||||
when: docker_remove_local_images
|
when: docker_remove_local_images|default(False)
|
||||||
|
|
||||||
- name: Tag and Push Container Images
|
- name: Tag and Push Container Images
|
||||||
block:
|
block:
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ host_port=80
|
|||||||
|
|
||||||
# Docker_image will not attempt to push to remote if the image already exists locally
|
# Docker_image will not attempt to push to remote if the image already exists locally
|
||||||
# Set this to true to delete images from docker on the build host so that they are pushed to the remote repository
|
# Set this to true to delete images from docker on the build host so that they are pushed to the remote repository
|
||||||
docker_remove_local_images=False
|
# docker_remove_local_images=False
|
||||||
|
|
||||||
# Set pg_hostname if you have an external postgres server, otherwise
|
# Set pg_hostname if you have an external postgres server, otherwise
|
||||||
# a new postgres service will be created
|
# a new postgres service will be created
|
||||||
|
|||||||
Reference in New Issue
Block a user