Fix ansible deprecation warnings

===
[DEPRECATION WARNING]: Using tests as filters is deprecated.
Instead of using `result|search` use `result is search`. This
feature will be removed in version 2.9.
===

Change-Id: I158a42b82d1818fa4e9296343b1b4ab787e8d89d
This commit is contained in:
Jonathan Rosser 2018-12-03 17:24:39 +00:00
parent e8c4fdd48c
commit ede416aac3
2 changed files with 2 additions and 2 deletions

View File

@ -98,7 +98,7 @@
section: "glance"
option: "need_service_restart"
value: true
when: (install_packages | changed) or
when: (install_packages is changed) or
('need_service_restart' not in ansible_local['openstack_ansible']['glance'])
- name: Run the systemd service role

View File

@ -121,4 +121,4 @@
hour: "*"
- name: "{{ glance_bin }}/glance-cache-cleaner"
hour: "*/5"
when: glance_flavor | search("cache")
when: glance_flavor is search("cache")