mirror of
https://gitlab.com/sagidayan/linux-config.git
synced 2024-11-22 23:35:26 +00:00
28 lines
778 B
YAML
28 lines
778 B
YAML
|
- name: Install LSDeluxe (RHEL family)
|
||
|
become: true
|
||
|
package:
|
||
|
name: lsd
|
||
|
state: present
|
||
|
when: ansible_facts['os_family'] == "RedHat"
|
||
|
|
||
|
- name: Check if lsd is installed (Debian Family)
|
||
|
command: dpkg-query -W lsd
|
||
|
register: lsd_package_check
|
||
|
failed_when: lsd_package_check.rc > 1
|
||
|
changed_when: lsd_package_check.rc == 1
|
||
|
when: ansible_facts['os_family'] == "Debian"
|
||
|
|
||
|
|
||
|
#===== Debian Only - No need for ansible_disrebution
|
||
|
- name: Download LSDeluxe deb file (Debian Family)
|
||
|
get_url:
|
||
|
url: https://github.com/Peltoche/lsd/releases/download/0.20.1/lsd-musl_0.20.1_amd64.deb
|
||
|
dest: ./lsd.deb
|
||
|
when: lsd_package_check.changed
|
||
|
|
||
|
- name: Install LSDeluxe Deb file (Debian Family)
|
||
|
become: true
|
||
|
apt:
|
||
|
deb: ./lsd.deb
|
||
|
when: lsd_package_check.changed
|