e2058a6b75
This change fixes this upcoming deprecation warning: [DEPRECATION WARNING]: Using tests as filters is deprecated. Instead of using `result|skipped` instead use `result is skipped`. This feature will be removed in version 2.9. Change-Id: Ic0c93f2ea896ead76922694e6150882d8a280daf
34 lines
1.0 KiB
YAML
34 lines
1.0 KiB
YAML
- name: Look for bindep.txt
|
|
stat:
|
|
path: "{{ bindep_dir }}/bindep.txt"
|
|
register: bindep_file_stat
|
|
|
|
- name: Define bindep_file fact
|
|
set_fact:
|
|
bindep_file: "{{ bindep_file_stat.stat.path }}"
|
|
when: bindep_file_stat.stat.exists
|
|
|
|
- name: Look for other-requirements.txt
|
|
stat:
|
|
path: "{{ bindep_dir }}/other-requirements.txt"
|
|
register: bindep_other_file_stat
|
|
when: not bindep_file_stat.stat.exists
|
|
|
|
- name: Define bindep_file fact
|
|
set_fact:
|
|
bindep_file: "{{ bindep_other_file_stat.stat.path }}"
|
|
when: not bindep_other_file_stat is skipped and bindep_other_file_stat.stat.exists
|
|
|
|
- name: Look for bindep fallback file
|
|
stat:
|
|
path: "{{ bindep_fallback }}"
|
|
register: bindep_fallback_file_stat
|
|
when: bindep_fallback is defined
|
|
and not bindep_other_file_stat is skipped
|
|
and not bindep_other_file_stat.stat.exists
|
|
|
|
- name: Define bindep_file fact
|
|
set_fact:
|
|
bindep_file: "{{ bindep_fallback_file_stat.stat.path }}"
|
|
when: not bindep_fallback_file_stat is skipped and bindep_fallback_file_stat.stat.exists
|