Fix usage of "|" for tests
With the more recent versions of ansible, we should now use "is" instead of the "|" sign for the tests. This should fix it. Change-Id: I95b55ff5a5932a9d1214f357a32cf1e4393f82af
This commit is contained in:
parent
cb466cd385
commit
e9bb87e7a6
|
@ -54,7 +54,7 @@
|
|||
pkg: "{{ nspawn_hosts_distro_packages }}"
|
||||
state: "{{ nspawn_hosts_package_state }}"
|
||||
register: install_packages
|
||||
until: install_packages|success
|
||||
until: install_packages is success
|
||||
retries: 5
|
||||
delay: 2
|
||||
notify:
|
||||
|
|
|
@ -40,7 +40,7 @@
|
|||
register: legacy_image_url
|
||||
retries: 3
|
||||
delay: 1
|
||||
until: legacy_image_url | success
|
||||
until: legacy_image_url is success
|
||||
|
||||
- name: Set nspawn cache fact(s) (legacy)
|
||||
set_fact:
|
||||
|
|
|
@ -129,4 +129,4 @@
|
|||
changed_when: false
|
||||
failed_when: false
|
||||
when:
|
||||
- machines_create | changed
|
||||
- machines_create is changed
|
||||
|
|
|
@ -118,7 +118,7 @@
|
|||
path: /var/lib/machines/test-container/test-file
|
||||
state: touch
|
||||
failed_when:
|
||||
- read_only_test | success
|
||||
- read_only_test is success
|
||||
register: read_only_test
|
||||
|
||||
- name: Remove base image
|
||||
|
|
Loading…
Reference in New Issue