This commit is contained in:
Felix Fontein 2021-01-25 18:02:54 +01:00 committed by GitHub
commit 8a95fe8b00
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 19 additions and 3 deletions

View file

@ -2914,9 +2914,22 @@ avoid such warnings, please quote the value.' in log_options_2.warnings"
published_ports:
- '127.0.0.1:9002:9002/tcp'
- '[::1]:9003:9003/tcp'
- '[fe80::1%test]:90:90/tcp'
force_kill: yes
register: published_ports_5
- name: published_ports (ports with IP addresses, idempotent)
docker_container:
image: "{{ docker_test_image_alpine }}"
command: '/bin/sh -c "sleep 10m"'
name: "{{ cname }}"
state: started
published_ports:
- '127.0.0.1:9002:9002/tcp'
- '[::1]:9003:9003/tcp'
- '[fe80::1%test]:90:90/tcp'
register: published_ports_6
- name: published_ports (no published ports)
docker_container:
image: "{{ docker_test_image_alpine }}"
@ -2927,7 +2940,7 @@ avoid such warnings, please quote the value.' in log_options_2.warnings"
comparisons:
published_ports: strict
force_kill: yes
register: published_ports_6
register: published_ports_7
- name: cleanup
docker_container:
@ -2943,7 +2956,8 @@ avoid such warnings, please quote the value.' in log_options_2.warnings"
- published_ports_3 is not changed
- published_ports_4 is changed
- published_ports_5 is changed
- published_ports_6 is changed
- published_ports_6 is not changed
- published_ports_7 is changed
####################################################################
## pull ############################################################