Merge "Fix bindep path"

This commit is contained in:
Zuul 2018-08-07 13:01:24 +00:00 committed by Gerrit Code Review
commit 522058c65d
1 changed files with 17 additions and 7 deletions

View File

@ -1,5 +1,9 @@
- hosts: all - hosts: all
pre_tasks: vars:
bindep_profile: test
# Define the global file so that no local file gets used.
bindep_file: /usr/local/bindep-fallback/bindep-fallback.txt
tasks:
- name: Install requirements - name: Install requirements
pip: pip:
chdir: "{{ zuul_work_dir }}" chdir: "{{ zuul_work_dir }}"
@ -12,9 +16,15 @@
virtualenv: "{{ zuul_work_virtualenv }}" virtualenv: "{{ zuul_work_virtualenv }}"
name: . name: .
roles: - name: Run bindep with the file
- role: bindep command: "{{ zuul_work_virtualenv }}/bin/bindep -b -f {{ bindep_file }} {{ bindep_profile }}"
bindep_profile: test register: _bindep_output
bindep_command: "{{ zuul_work_virtualenv }}/bin/bindep" changed_when: false
# Define the global file so that no local file gets used. failed_when: false
bindep_file: /usr/local/bindep-fallback/bindep-fallback.txt
- name: Install distro packages from bindep
package:
name: "{{ _bindep_output.stdout_lines }}"
state: present
become: yes
when: _bindep_output.stdout_lines