Adjusting to differences between Ansible 2.7 and Ansible 2.8.
(cherry picked from commit 6cdb357826ffb1446e4ceb1050349fe30f511b41)
This commit is contained in:
parent
03bc4be1c3
commit
af977daec7
1 changed files with 5 additions and 2 deletions
|
@ -162,7 +162,7 @@
|
|||
force: yes
|
||||
register: force_1
|
||||
|
||||
- name: force (unchanged)
|
||||
- name: force (unchanged, but still changed)
|
||||
docker_image:
|
||||
path: "{{ role_path }}/files"
|
||||
name: "{{ iname }}"
|
||||
|
@ -178,7 +178,10 @@
|
|||
- assert:
|
||||
that:
|
||||
- force_1 is changed
|
||||
- force_2 is not changed
|
||||
# In Ansible 2.7, there's no detection which will detect that the
|
||||
# resulting image didn't change. That's why force_2 is changed
|
||||
# for Ansible 2.7, but not for Ansible 2.8.
|
||||
- force_2 is changed
|
||||
|
||||
####################################################################
|
||||
## load path #######################################################
|
||||
|
|
Loading…
Reference in a new issue