a8fd02960c
- Use IR fix for setuptools installation [1] - Restore voting to 'tobiko-tox-infrared-centos-8' job [1] https://review.gerrithub.io/c/redhat-openstack/infrared/+/501507 Change-Id: I04dafdae5cc62a4c470204e0ba816e9bde522aaf
38 lines
972 B
YAML
38 lines
972 B
YAML
---
|
|
|
|
- name: "ensure '{{ bindep_command }}' command is available"
|
|
include_tasks: ensure-bindep.yaml
|
|
when:
|
|
- bindep_executable is not defined
|
|
|
|
|
|
- name: "check '{{ bindep_file }}' file exists"
|
|
stat:
|
|
path: '{{ bindep_file | realpath }}'
|
|
register: check_bindep_file
|
|
|
|
|
|
- block:
|
|
- name: "run '{{ bindep_command }}' with profile '{{ bindep_profile }}'"
|
|
command: >
|
|
'{{ bindep_executable }}' -b -f '{{ bindep_file }}' {{ bindep_profile }}
|
|
when:
|
|
- check_bindep_file.stat.exists
|
|
- check_bindep_file.stat.readable
|
|
register: run_bindep
|
|
changed_when: no
|
|
|
|
rescue:
|
|
- debug: var=run_bindep
|
|
when: '(run_bindep.stdout_lines | length) == 0'
|
|
failed_when: yes
|
|
|
|
- name: 'install missing packages'
|
|
become: '{{ test_become | bool }}'
|
|
package:
|
|
name: '{{ run_bindep.stdout_lines }}'
|
|
register: install_packages
|
|
|
|
- name: 'show installed packages'
|
|
debug: var=install_packages
|