ansible-lsd-role/tasks/main.yml
2022-11-09 17:09:51 +01:00

20 lines
416 B
YAML

---
# tasks file for Ansible-Lsd-Role
- 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