- Added 'become_password_file' to 'ansible.cfg' for privilege escalation handling.
- Removed separate installation tasks for 'atuin', 'eurkey', 'ghostty', 'git-delta', 'ripgrep', 'starship', 'veracrypt', and 'pacstall', consolidating them into 'curl.yml' and 'git_deb.yml'.
- Introduced 'git_deb.yml' for handling GitHub '.deb' installations dynamically using 'github_deb' variable.
- Improved error handling and pipe safety in curl-based installations ('set -o pipefail').
- Set proper permissions ('mode: 0600') for downloaded files in 'remove_ubuntu_banner.yml' and 'fira_code_fonts.yml'.
- Refactored 'github_releases.yml' to allow optional 'v' prefix handling in 'tag_name'.
- Updated 'main.yml' to remove redundant installations and streamline execution.
- Defined 'github_deb' list in 'vars/main.yml' to manage '.deb' package downloads dynamically.
These changes enhance maintainability, reduce redundancy, and improve package installation flexibility.
Signed-off-by: Tuan-Dat Tran <tuan-dat.tran@tudattr.dev>
27 lines
664 B
YAML
27 lines
664 B
YAML
---
|
|
- name: Create fonts directory
|
|
ansible.builtin.file:
|
|
path: "{{ ansible_env.HOME }}/.fonts"
|
|
state: directory
|
|
mode: "0755"
|
|
|
|
- name: Download FiraCode Nerd Font zip
|
|
ansible.builtin.get_url:
|
|
url: https://github.com/ryanoasis/nerd-fonts/releases/download/v3.3.0/FiraMono.zip
|
|
dest: "/tmp/FiraMono.zip"
|
|
mode: "0600"
|
|
|
|
- name: Extract FiraCode from zip
|
|
ansible.builtin.unarchive:
|
|
src: "/tmp/FiraMono.zip"
|
|
dest: "{{ ansible_env.HOME }}/.fonts"
|
|
remote_src: true
|
|
|
|
- name: Remove FiraMono.zip
|
|
ansible.builtin.file:
|
|
path: "/tmp/FiraMono.zip"
|
|
state: absent
|
|
|
|
- name: Refresh font cache
|
|
ansible.builtin.shell: fc-cache -fv
|