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: I8f7589404a4a2afd5b92607da0e87cf30fddc7bc
This commit is contained in:
Jean-Philippe Evrard 2018-07-12 16:44:21 +02:00 committed by Jesse Pretorius (odyssey4me)
parent 9d8845d19e
commit 5873b7f422
4 changed files with 7 additions and 7 deletions

View File

@ -25,7 +25,7 @@
changed_when: false
delegate_to: '{{ ceph_mon_host }}'
register: ceph_client_keyrings
until: ceph_client_keyrings|success
until: ceph_client_keyrings is success
retries: 3
tags:
- ceph-config

View File

@ -20,7 +20,7 @@
update_cache: "{{ (ansible_pkg_mgr in ['apt', 'zypper']) | ternary('yes', omit) }}"
cache_valid_time: "{{ (ansible_pkg_mgr == 'apt') | ternary(cache_timeout, omit) }}"
register: install_packages
until: install_packages|success
until: install_packages is success
retries: 5
delay: 2
notify:

View File

@ -32,7 +32,7 @@
url: "{{ item.url | default(omit) }}"
state: "present"
register: add_keys
until: add_keys|success
until: add_keys is success
retries: 5
delay: 2
with_items: "{{ ceph_gpg_keys }}"
@ -47,7 +47,7 @@
url: "{{ item.fallback_url | default(omit) }}"
state: "present"
register: add_keys_fallback
until: add_keys_fallback|success
until: add_keys_fallback is success
retries: 5
delay: 2
with_items: "{{ ceph_gpg_keys }}"
@ -81,8 +81,8 @@
- name: Update Apt cache
apt:
update_cache: yes
when: add_repos | changed
when: add_repos is changed
register: update_apt_cache
until: update_apt_cache | success
until: update_apt_cache is success
retries: 5
delay: 2

View File

@ -18,7 +18,7 @@
key: "{{ ceph_gpg_keys }}"
state: "present"
register: add_keys
until: add_keys|success
until: add_keys is success
failed_when: false
retries: 5
delay: 2