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:
Jean-Philippe Evrard 2018-07-12 16:44:21 +02:00
parent cb466cd385
commit e9bb87e7a6
4 changed files with 4 additions and 4 deletions

View File

@ -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:

View File

@ -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:

View File

@ -129,4 +129,4 @@
changed_when: false
failed_when: false
when:
- machines_create | changed
- machines_create is changed

View File

@ -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