zuul-jobs/roles/bindep/tasks/main.yaml
Paul Belanger 829297c37a
Ensure we load roles for linting
Did didn't have ansible-lint setup properly, as a results our roles
weren't actually linted properly.

Fix variable linting issues and ignore ANSIBLE0012.

Change-Id: I07aa940245e700c9f08df0f1920720f0ed9d3de0
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2017-07-17 16:50:06 -04:00

33 lines
852 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
ignore_errors: yes
register: bindep_command_type
when: bindep_command is not defined or 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
- include: install.yaml
when: bindep_command is not defined
- include: find.yaml
when: bindep_file is not defined
- name: Define bindep_command fact
set_fact:
bindep_run: "{{ bindep_command }} -b -f {{ bindep_file }} {{ bindep_profile }}"
- include: packages.yaml
when: bindep_file is defined