Fix exists check
The |exists is currently deprecated. [DEPRECATION WARNING]: Using tests as filters is deprecated. Instead of using `result|exists` use `result is exists`. This feature will be removed in version 2.9. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. Change-Id: I0c32686062e79142aa5c664a4a42ac590263b64e
This commit is contained in:
parent
8c20273098
commit
e19509f90c
|
@ -41,7 +41,7 @@
|
|||
--volume {{ yum_install.path }}:/tmp/yum_install.sh
|
||||
--volume {{ yum_repos_dir_path }}:/etc/yum.repos.d
|
||||
{% for repo in file_repos.stdout_lines %}
|
||||
{% if repo|exists %}
|
||||
{% if repo is exists %}
|
||||
--volume {{ repo }}:{{ repo }}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
|
@ -58,7 +58,7 @@
|
|||
--volume {{ yum_install.path }}:/tmp/yum_install.sh
|
||||
--volume {{ yum_repos_dir_path }}:/etc/yum.repos.d
|
||||
{% for repo in file_repos.stdout_lines %}
|
||||
{% if repo|exists %}
|
||||
{% if repo is exists %}
|
||||
--volume {{ repo }}:{{ repo }}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
|
|
|
@ -41,7 +41,7 @@
|
|||
--volume {{ yum_update.path }}:/tmp/yum_update.sh
|
||||
--volume {{ yum_repos_dir_path }}:/etc/yum.repos.d
|
||||
{% for repo in file_repos.stdout_lines %}
|
||||
{% if repo|exists %}
|
||||
{% if repo is exists %}
|
||||
--volume {{ repo }}:{{ repo }}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
|
@ -58,7 +58,7 @@
|
|||
--volume {{ yum_update.path }}:/tmp/yum_update.sh
|
||||
--volume {{ yum_repos_dir_path }}:/etc/yum.repos.d
|
||||
{% for repo in file_repos.stdout_lines %}
|
||||
{% if repo|exists %}
|
||||
{% if repo is exists %}
|
||||
--volume {{ repo }}:{{ repo }}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
|
|
Loading…
Reference in New Issue