ansible-lsd-role/tasks/main.yml

20 lines
416 B
YAML
Raw Normal View History

2022-11-09 15:05:43 +01:00
---
# tasks file for Ansible-Lsd-Role
2022-11-09 17:08:55 +01:00
- name: Get current lsd version
shell:
cmd: lsd --version 2>&1 | cut -d ' ' -f 2
register: result
changed_when: false
failed_when: result.rc != 0
- name: Set need install
set_fact:
need_install: "{{ result.stdout != lsd_version }}"
changed_when: need_install
- name: Install Lsd
ansible.builtin.apt:
deb: "{{ github_bin_url }}"
when: need_install