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:
@@ -91,7 +91,7 @@
|
|||||||
retries: 3
|
retries: 3
|
||||||
delay: 5
|
delay: 5
|
||||||
when:
|
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
|
# Due to https://github.com/ansible/ansible-modules-extras/issues/2691
|
||||||
# this uses the LXC CLI tools to ensure that we get logging.
|
# this uses the LXC CLI tools to ensure that we get logging.
|
||||||
@@ -111,7 +111,7 @@
|
|||||||
- container_stop.rc not in [0, 2]
|
- container_stop.rc not in [0, 2]
|
||||||
when:
|
when:
|
||||||
- lxc_container_allow_restarts | default(True) | bool
|
- 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
|
- _lxc_container_state.stdout.find('RUNNING') != -1
|
||||||
tags:
|
tags:
|
||||||
- common-lxc
|
- common-lxc
|
||||||
@@ -129,7 +129,7 @@
|
|||||||
until: container_start is success
|
until: container_start is success
|
||||||
retries: 3
|
retries: 3
|
||||||
when:
|
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:
|
tags:
|
||||||
- common-lxc
|
- common-lxc
|
||||||
|
|
||||||
@@ -140,6 +140,6 @@
|
|||||||
sleep: "{{ lxc_container_wait_params.sleep | default(omit) }}"
|
sleep: "{{ lxc_container_wait_params.sleep | default(omit) }}"
|
||||||
timeout: "{{ lxc_container_wait_params.timeout | default(omit) }}"
|
timeout: "{{ lxc_container_wait_params.timeout | default(omit) }}"
|
||||||
when:
|
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:
|
tags:
|
||||||
- common-lxc
|
- common-lxc
|
||||||
|
|||||||
@@ -35,7 +35,7 @@
|
|||||||
delay: 2
|
delay: 2
|
||||||
when:
|
when:
|
||||||
- _apt_proxy_removed is mapping
|
- _apt_proxy_removed is mapping
|
||||||
- _apt_proxy_removed | changed
|
- _apt_proxy_removed is changed
|
||||||
tags:
|
tags:
|
||||||
- common-proxy
|
- common-proxy
|
||||||
|
|
||||||
|
|||||||
@@ -66,7 +66,7 @@
|
|||||||
{{ ((upper_constraints_check.status | default(503)) != 200) | ternary(__upstream_constraints, __pip_install_upper_constraints) }}
|
{{ ((upper_constraints_check.status | default(503)) != 200) | ternary(__upstream_constraints, __pip_install_upper_constraints) }}
|
||||||
vars:
|
vars:
|
||||||
# Use https when Python with native SNI support is available
|
# 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: >-
|
__upstream_constraints: >-
|
||||||
/opt/global-requirement-pins.txt
|
/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(' #.*$','') }}
|
--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
|
state: absent
|
||||||
when:
|
when:
|
||||||
- bootstrap_host_data_disk_device_force | bool
|
- 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:
|
with_items:
|
||||||
- "{{ ansible_mounts }}"
|
- "{{ ansible_mounts }}"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user