mirror of
https://github.com/ansible-collections/community.docker.git
synced 2025-12-17 12:28:55 +00:00
(cherry picked from commit 648e0652d5)
This commit is contained in:
parent
7a7494a718
commit
58036e5092
@ -469,6 +469,7 @@ options:
|
|||||||
mac_address:
|
mac_address:
|
||||||
description:
|
description:
|
||||||
- Container MAC address (for example, C(92:d0:c6:0a:29:33)).
|
- Container MAC address (for example, C(92:d0:c6:0a:29:33)).
|
||||||
|
- Note that the global container-wide MAC address is deprecated and no longer used since Docker API version 1.44.
|
||||||
type: str
|
type: str
|
||||||
memory:
|
memory:
|
||||||
description:
|
description:
|
||||||
|
|||||||
@ -2744,6 +2744,8 @@ avoid such warnings, please quote the value.' in (log_options_2.warnings | defau
|
|||||||
## mac_address #####################################################
|
## mac_address #####################################################
|
||||||
####################################################################
|
####################################################################
|
||||||
|
|
||||||
|
- when: docker_api_version is version('1.44', '<')
|
||||||
|
block:
|
||||||
- name: mac_address
|
- name: mac_address
|
||||||
docker_container:
|
docker_container:
|
||||||
image: "{{ docker_test_image_alpine }}"
|
image: "{{ docker_test_image_alpine }}"
|
||||||
@ -2769,15 +2771,15 @@ avoid such warnings, please quote the value.' in (log_options_2.warnings | defau
|
|||||||
name: "{{ cname }}"
|
name: "{{ cname }}"
|
||||||
mac_address: 92:d0:c6:0a:29:44
|
mac_address: 92:d0:c6:0a:29:44
|
||||||
state: started
|
state: started
|
||||||
force_kill: yes
|
force_kill: true
|
||||||
register: mac_address_3
|
register: mac_address_3
|
||||||
|
|
||||||
- name: cleanup
|
- name: cleanup
|
||||||
docker_container:
|
docker_container:
|
||||||
name: "{{ cname }}"
|
name: "{{ cname }}"
|
||||||
state: absent
|
state: absent
|
||||||
force_kill: yes
|
force_kill: true
|
||||||
diff: no
|
diff: false
|
||||||
|
|
||||||
- assert:
|
- assert:
|
||||||
that:
|
that:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user