mirror of
https://github.com/starr-dusT/dotfiles.git
synced 2025-02-19 19:27:31 -08:00
improve git download with a partial match for downloading assets
This commit is contained in:
parent
bb26e00736
commit
1b6f987b49
@ -27,6 +27,7 @@
|
||||
- xsel # Command-line getting and setting the contents of the X selection
|
||||
- clipmenu # Clipboard management using dmenu
|
||||
- nerd-fonts # Iconic font aggregator, collection and patcher
|
||||
- PrusaSlicer # PrusaSlicer-2.4.2_2 G-code generator for 3D printers (RepRap, Makerbot, Ultimaker etc.)
|
||||
state: present
|
||||
become: true
|
||||
|
||||
|
@ -1,13 +1,16 @@
|
||||
- name: Get {{ item.repo }} information
|
||||
github_release:
|
||||
user: "{{ item.user }}"
|
||||
repo: "{{ item.repo }}"
|
||||
action: latest_release
|
||||
- name: Get {{ item.repo }} release information
|
||||
uri:
|
||||
url: https://api.github.com/repos/{{ item.user }}/{{ item.repo }}/releases/latest
|
||||
return_content: true
|
||||
register: repo_latest
|
||||
|
||||
- name: Install {{ item.repo }}
|
||||
unarchive:
|
||||
src: "https://github.com/{{ item.user }}/{{ item.repo }}/releases/download/{{ repo_latest['tag'] }}/{{ item.name }}"
|
||||
- name: Install {{ item.repo }} - {{ repo_latest.json.tag_name }}
|
||||
loop: "{{ repo_latest.json.assets }}"
|
||||
when: "item.match in asset.name"
|
||||
unarchive:
|
||||
src: "{{ asset.browser_download_url }}"
|
||||
dest: /usr/local/bin
|
||||
remote_src: true
|
||||
remote_src: true
|
||||
loop_control:
|
||||
loop_var: asset
|
||||
become: true
|
||||
|
@ -1,6 +1,6 @@
|
||||
- name: Clone or pull void-packages
|
||||
ansible.builtin.git:
|
||||
repo: 'https://github.com/void-linux/void-packages.git'
|
||||
repo: 'https://github.com/starr-dusT/void-packages.git'
|
||||
dest: /home/{{ user }}/git/void-packages
|
||||
update: yes
|
||||
register: git_return
|
||||
|
@ -3,4 +3,4 @@
|
||||
loop:
|
||||
- user: kdheepak
|
||||
repo: taskwarrior-tui
|
||||
name: taskwarrior-tui-x86_64-unknown-linux-gnu.tar.gz
|
||||
match: unknown-linux-gnu.tar.gz
|
||||
|
Loading…
x
Reference in New Issue
Block a user