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: I9bc46a91349411c24d52d67285c563d868baaba1
This commit is contained in:
parent
a2177e9a45
commit
64bf985a3d
@ -91,7 +91,7 @@
|
||||
retries: 3
|
||||
delay: 5
|
||||
when:
|
||||
- (_mc is defined and _mc | changed) or (_ec is defined and _ec | changed)
|
||||
- (_mc is defined and _mc is changed) or (_ec is defined and _ec is changed)
|
||||
|
||||
# Due to https://github.com/ansible/ansible-modules-extras/issues/2691
|
||||
# this uses the LXC CLI tools to ensure that we get logging.
|
||||
@ -111,7 +111,7 @@
|
||||
- container_stop.rc not in [0, 2]
|
||||
when:
|
||||
- lxc_container_allow_restarts | default(True) | bool
|
||||
- (_mc is defined and _mc | changed) or (_ec is defined and _ec | changed)
|
||||
- (_mc is defined and _mc is changed) or (_ec is defined and _ec is changed)
|
||||
- _lxc_container_state.stdout.find('RUNNING') != -1
|
||||
tags:
|
||||
- common-lxc
|
||||
@ -129,7 +129,7 @@
|
||||
until: container_start is success
|
||||
retries: 3
|
||||
when:
|
||||
- (_mc is defined and _mc | changed) or (_ec is defined and _ec | changed)
|
||||
- (_mc is defined and _mc is changed) or (_ec is defined and _ec is changed)
|
||||
tags:
|
||||
- common-lxc
|
||||
|
||||
@ -140,6 +140,6 @@
|
||||
sleep: "{{ lxc_container_wait_params.sleep | default(omit) }}"
|
||||
timeout: "{{ lxc_container_wait_params.timeout | default(omit) }}"
|
||||
when:
|
||||
- (_mc is defined and _mc | changed) or (_ec is defined and _ec | changed)
|
||||
- (_mc is defined and _mc is changed) or (_ec is defined and _ec is changed)
|
||||
tags:
|
||||
- common-lxc
|
||||
|
@ -35,7 +35,7 @@
|
||||
delay: 2
|
||||
when:
|
||||
- _apt_proxy_removed is mapping
|
||||
- _apt_proxy_removed | changed
|
||||
- _apt_proxy_removed is changed
|
||||
tags:
|
||||
- common-proxy
|
||||
|
||||
|
@ -66,7 +66,7 @@
|
||||
{{ ((upper_constraints_check.status | default(503)) != 200) | ternary(__upstream_constraints, __pip_install_upper_constraints) }}
|
||||
vars:
|
||||
# Use https when Python with native SNI support is available
|
||||
__pip_install_upper_constraints_proto: "{{ ansible_python_version | version_compare('2.7.9', '>=') | ternary('https','http') }}"
|
||||
__pip_install_upper_constraints_proto: "{{ (ansible_python_version is version_compare('2.7.9', '>=')) | ternary('https','http') }}"
|
||||
__upstream_constraints: >-
|
||||
/opt/global-requirement-pins.txt
|
||||
--constraint {{ __pip_install_upper_constraints_proto }}://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt?id={{ requirements_git_install_branch | regex_replace(' #.*$','') }}
|
||||
|
@ -42,7 +42,7 @@
|
||||
state: absent
|
||||
when:
|
||||
- bootstrap_host_data_disk_device_force | bool
|
||||
- item.device | search(bootstrap_host_data_disk_device)
|
||||
- item.device is search(bootstrap_host_data_disk_device)
|
||||
with_items:
|
||||
- "{{ ansible_mounts }}"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user