mirror of
https://github.com/ansible-collections/community.docker.git
synced 2026-03-30 00:33:58 +00:00
* Adjust deprecation versions. * Remove redirects that are already made in ansible/ansible's ansible_builtin_runtime.yml * Remove modules that were moved to the google.cloud collection according to ansible/ansible's ansible_builtin_runtime.yml. * The _info module is in google.cloud. * The gcp doc_fragment is a copy of the one in google.cloud and is only used by one lookup. Mark as deprecated/internal. * Remove entries of modules that no longer exist. * Update ignore.txt. * Try to fix test. * Remove debug output.
52 lines
1.9 KiB
YAML
52 lines
1.9 KiB
YAML
---
|
|
- name: Registering image name
|
|
set_fact:
|
|
iname: "{{ name_prefix ~ '-old-options' }}"
|
|
|
|
- name: Registering image name
|
|
set_fact:
|
|
inames: "{{ inames + [iname]}}"
|
|
|
|
####################################################################
|
|
## build ###########################################################
|
|
####################################################################
|
|
|
|
- name: build with old-style options
|
|
docker_image:
|
|
name: "{{ iname }}"
|
|
path: "{{ role_path }}/files"
|
|
dockerfile: Dockerfile
|
|
http_timeout: 60
|
|
nocache: yes
|
|
pull: no
|
|
rm: no
|
|
buildargs:
|
|
TEST1: val1
|
|
TEST2: val2
|
|
TEST3: "True"
|
|
container_limits:
|
|
memory: 5000000
|
|
memswap: 7000000
|
|
source: build
|
|
register: build
|
|
|
|
- name: cleanup
|
|
docker_image:
|
|
name: "{{ iname }}"
|
|
state: absent
|
|
force_absent: yes
|
|
|
|
- set_fact:
|
|
build_deprecations: "{{ build.deprecations | map(attribute='msg') | list }}"
|
|
|
|
- assert:
|
|
that:
|
|
- '"Please specify build.container_limits instead of container_limits. The container_limits option has been renamed" in build_deprecations'
|
|
- '"Please specify build.dockerfile instead of dockerfile. The dockerfile option has been renamed" in build_deprecations'
|
|
- '"Please specify build.http_timeout instead of http_timeout. The http_timeout option has been renamed" in build_deprecations'
|
|
- '"Please specify build.nocache instead of nocache. The nocache option has been renamed" in build_deprecations'
|
|
- '"Please specify build.path instead of path. The path option has been renamed" in build_deprecations'
|
|
- '"Please specify build.pull instead of pull. The pull option has been renamed" in build_deprecations'
|
|
- '"Please specify build.rm instead of rm. The rm option has been renamed" in build_deprecations'
|
|
- '"Please specify build.args instead of buildargs. The buildargs option has been renamed" in build_deprecations'
|