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
|
- xsel # Command-line getting and setting the contents of the X selection
|
||||||
- clipmenu # Clipboard management using dmenu
|
- clipmenu # Clipboard management using dmenu
|
||||||
- nerd-fonts # Iconic font aggregator, collection and patcher
|
- 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
|
state: present
|
||||||
become: true
|
become: true
|
||||||
|
|
||||||
|
@ -1,13 +1,16 @@
|
|||||||
- name: Get {{ item.repo }} information
|
- name: Get {{ item.repo }} release information
|
||||||
github_release:
|
uri:
|
||||||
user: "{{ item.user }}"
|
url: https://api.github.com/repos/{{ item.user }}/{{ item.repo }}/releases/latest
|
||||||
repo: "{{ item.repo }}"
|
return_content: true
|
||||||
action: latest_release
|
|
||||||
register: repo_latest
|
register: repo_latest
|
||||||
|
|
||||||
- name: Install {{ item.repo }}
|
- name: Install {{ item.repo }} - {{ repo_latest.json.tag_name }}
|
||||||
unarchive:
|
loop: "{{ repo_latest.json.assets }}"
|
||||||
src: "https://github.com/{{ item.user }}/{{ item.repo }}/releases/download/{{ repo_latest['tag'] }}/{{ item.name }}"
|
when: "item.match in asset.name"
|
||||||
|
unarchive:
|
||||||
|
src: "{{ asset.browser_download_url }}"
|
||||||
dest: /usr/local/bin
|
dest: /usr/local/bin
|
||||||
remote_src: true
|
remote_src: true
|
||||||
|
loop_control:
|
||||||
|
loop_var: asset
|
||||||
become: true
|
become: true
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
- name: Clone or pull void-packages
|
- name: Clone or pull void-packages
|
||||||
ansible.builtin.git:
|
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
|
dest: /home/{{ user }}/git/void-packages
|
||||||
update: yes
|
update: yes
|
||||||
register: git_return
|
register: git_return
|
||||||
|
@ -3,4 +3,4 @@
|
|||||||
loop:
|
loop:
|
||||||
- user: kdheepak
|
- user: kdheepak
|
||||||
repo: taskwarrior-tui
|
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