refactor: add zsync and Zen browser tasks, update default applications and configurations
Some checks failed
Nix Format Check / check-format (push) Failing after 1m6s

This commit is contained in:
2025-03-03 14:49:15 +01:00
parent a47b6ea2f2
commit c8944e8ed6
16 changed files with 267 additions and 211 deletions

View File

@ -36,3 +36,6 @@
- name: Include pipx tasks
ansible.builtin.import_tasks: tasks/global/pipx.yml
- name: Include zsync tasks
ansible.builtin.import_tasks: tasks/global/zsync.yml

View File

@ -0,0 +1,38 @@
- name: Check if zsync is installed
ansible.builtin.command: zsync -V
register: zsync_installed
ignore_errors: true
- name: Install zsync from source
ansible.builtin.get_url:
url: http://zsync.moria.org.uk/download/zsync-0.6.2.tar.bz2
dest: /tmp/zsync-0.6.2.tar.bz2
mode: '0644'
when: zsync_installed.rc != 0
- name: Extract zsync source
ansible.builtin.unarchive:
src: /tmp/zsync-0.6.2.tar.bz2
dest: /tmp
remote_src: false
creates: /tmp/zsync-0.6.2
when: zsync_installed.rc != 0
- name: Install zsync from source (./configure)
ansible.builtin.command: ./configure
args:
chdir: /tmp/zsync-0.6.2
when: zsync_installed.rc != 0
- name: Install zsync from source (make)
ansible.builtin.command: make
args:
chdir: /tmp/zsync-0.6.2
when: zsync_installed.rc != 0
- name: Install zsync from source (sudo make install)
ansible.builtin.command: make install
args:
chdir: /tmp/zsync-0.6.2
become: true
when: zsync_installed.rc != 0