docker_image: stop pulling by default on build (#53911)

* Prepare to change default of build.pull from yes to no in Ansible 2.12.

* Specify build.pull.

* Add changelog.

* Fix bad indent.
This commit is contained in:
Felix Fontein
2019-03-18 06:34:07 +01:00
committed by ansibot
parent 4c2a3bfed5
commit 50d56ca89d
3 changed files with 27 additions and 9 deletions

View File

@@ -21,6 +21,7 @@
TEST1: val1
TEST2: val2
TEST3: "True"
pull: no
source: build
register: buildargs_1
@@ -33,6 +34,7 @@
TEST1: val1
TEST2: val2
TEST3: "True"
pull: no
source: build
register: buildargs_2
@@ -65,6 +67,7 @@
path: "{{ role_path }}/files"
container_limits:
memory: 4000
pull: no
source: build
ignore_errors: yes
register: container_limits_1
@@ -77,6 +80,7 @@
container_limits:
memory: 5000000
memswap: 7000000
pull: no
source: build
register: container_limits_2
@@ -107,6 +111,7 @@
build:
path: "{{ role_path }}/files"
dockerfile: "MyDockerfile"
pull: no
source: build
register: dockerfile_1
@@ -136,6 +141,7 @@
name: "{{ iname }}"
build:
path: "{{ role_path }}/files"
pull: no
repository: "{{ registry_address }}/test/{{ iname }}"
source: build
register: repository_1
@@ -145,6 +151,7 @@
name: "{{ iname }}"
build:
path: "{{ role_path }}/files"
pull: no
repository: "{{ registry_address }}/test/{{ iname }}"
source: build
register: repository_2
@@ -178,6 +185,7 @@
name: "{{ iname }}"
build:
path: "{{ role_path }}/files"
pull: no
source: build
- name: force (changed)
@@ -186,6 +194,7 @@
build:
path: "{{ role_path }}/files"
dockerfile: "MyDockerfile"
pull: no
source: build
force_source: yes
register: force_1
@@ -196,6 +205,7 @@
build:
path: "{{ role_path }}/files"
dockerfile: "MyDockerfile"
pull: no
source: build
force_source: yes
register: force_2
@@ -257,6 +267,7 @@
name: "{{ iname }}"
build:
path: "{{ role_path }}/files"
pull: no
source: build
register: path_1
@@ -264,7 +275,8 @@
docker_image:
name: "{{ iname }}"
build:
path: "{{ role_path }}/files"
path: "{{ role_path }}/files"
pull: no
source: build
register: path_2