a18999e002
Change-Id: I60f229f06e9655bead1f38a8e2d70c3048c0269b
22 lines
593 B
YAML
22 lines
593 B
YAML
- name: Look for bindep command
|
|
stat:
|
|
path: "{{ bindep_command }}"
|
|
when: bindep_command is defined
|
|
register: bindep_command_stat
|
|
|
|
- name: Check for system bindep
|
|
args:
|
|
executable: /bin/bash
|
|
command: type -p bindep
|
|
failed_when: false
|
|
register: bindep_command_type
|
|
when: >-
|
|
bindep_command is not defined
|
|
or bindep_command_stat is defined
|
|
and not bindep_command_stat.stat.exists
|
|
|
|
- name: Define bindep_command fact
|
|
set_fact:
|
|
bindep_command: "{{ bindep_command_type.stdout }}"
|
|
when: bindep_command_type|succeeded and not bindep_command_type|skipped
|