fixed fastfetch/neofetch install
This commit is contained in:
@@ -28,17 +28,20 @@
|
|||||||
name: net-tools
|
name: net-tools
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
- name: Install neofetch or fastfetch
|
- name: Try to install neofetch
|
||||||
block:
|
|
||||||
- name: Install neofetch
|
|
||||||
ansible.builtin.apt:
|
ansible.builtin.apt:
|
||||||
name: neofetch
|
name: neofetch
|
||||||
state: present
|
state: present
|
||||||
|
update_cache: true
|
||||||
|
register: neofetch_install
|
||||||
|
failed_when: false
|
||||||
|
become: true
|
||||||
|
|
||||||
rescue:
|
- name: Install fastfetch if neofetch is unavailable
|
||||||
- name: If neofetch is depricated install fastfetch
|
|
||||||
ansible.builtin.apt:
|
ansible.builtin.apt:
|
||||||
name: fastfetch
|
name: fastfetch
|
||||||
state: present
|
state: present
|
||||||
|
when: neofetch_install is failed
|
||||||
|
become: true
|
||||||
|
|
||||||
# This file was written by Ebbe Baß (umpi) - ebbe@ping-mee.de
|
# This file was written by Ebbe Baß (umpi) - ebbe@ping-mee.de
|
||||||
Reference in New Issue
Block a user