aboutsummaryrefslogblamecommitdiffstatshomepage
path: root/roles/common/tasks/tool.yml
blob: f8fda64bb59807994e9555dbcea39c17669500f4 (plain) (tree)
1
2
3
4
5
6
7
8







                                                                         
- name: "Check for {{ item }}"
  command: "{{ item }} --version"
  register: cmd_result
  changed_when: false
  failed_when: false

- name: "Set fact about {{ item }}"
  set_fact: "has_{{ item | replace('-', '_') }}={{ cmd_result.rc == 0 }}"