aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/roles/common/tasks/tool.yml
blob: 48d0acc3dc34624d660c61a30b55cedc65da88a4 (plain) (blame)
1
2
3
4
5
6
7
8
- name: "Check for {{ item }}"
  ansible.builtin.command: "{{ item }} --version"
  register: cmd_result
  changed_when: false
  failed_when: false

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