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:
parent
e8c4fdd48c
commit
ede416aac3
@ -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
|
||||
|
@ -121,4 +121,4 @@
|
||||
hour: "*"
|
||||
- name: "{{ glance_bin }}/glance-cache-cleaner"
|
||||
hour: "*/5"
|
||||
when: glance_flavor | search("cache")
|
||||
when: glance_flavor is search("cache")
|
||||
|
Loading…
x
Reference in New Issue
Block a user