mirror of
https://github.com/morten-olsen/configs.git
synced 2026-02-08 00:46:24 +01:00
update
This commit is contained in:
30
playbooks/roles/software/starship/tasks/main.yml
Normal file
30
playbooks/roles/software/starship/tasks/main.yml
Normal file
@@ -0,0 +1,30 @@
|
||||
- name: Download starship
|
||||
tags: always
|
||||
ansible.builtin.get_url:
|
||||
url: "{{ download_url }}"
|
||||
dest: "{{ download_dir }}"
|
||||
|
||||
- name: Create dir
|
||||
tags: always
|
||||
ansible.builtin.file:
|
||||
path: "{{ unpack_dir }}"
|
||||
state: directory
|
||||
|
||||
- name: Extract starship
|
||||
tags: always
|
||||
ansible.builtin.unarchive:
|
||||
src: "{{ download_dir }}"
|
||||
dest: "{{ unpack_dir }}"
|
||||
|
||||
- name: Ensure dir
|
||||
tags: always
|
||||
ansible.builtin.file:
|
||||
path: "{{ home }}/.scripts"
|
||||
state: directory
|
||||
- name: Move bin
|
||||
tags: always
|
||||
ansible.builtin.copy:
|
||||
remote_src: true
|
||||
mode: 755
|
||||
src: "{{ unpack_file }}"
|
||||
dest: "{{ home }}/.scripts/atuin"
|
||||
Reference in New Issue
Block a user