Add arch support

This commit is contained in:
Morten Olsen
2024-10-09 21:25:58 +02:00
parent f8c6ffee46
commit c860e8babb
33 changed files with 527 additions and 23 deletions

View File

@@ -1,6 +1,7 @@
---
- name: Download atuin
tags: always
become: "{{ use_become }}"
ansible.builtin.get_url:
url: "{{ software_atuin_download_url }}"
dest: "{{ software_atuin_download_dir }}"
@@ -8,6 +9,7 @@
- name: Create dir
tags: always
become: "{{ use_become }}"
ansible.builtin.file:
path: "{{ software_atuin_unpack_dir }}"
mode: "0755"
@@ -15,12 +17,15 @@
- name: Unpacking atuin
tags: always
become: "{{ use_become }}"
ansible.builtin.unarchive:
remote_src: true
src: "{{ software_atuin_download_dir }}"
dest: "{{ software_atuin_unpack_dir }}"
- name: Ensure dir
tags: always
become: "{{ use_become }}"
ansible.builtin.file:
path: "{{ home }}/.local/bin"
mode: "0755"
@@ -29,6 +34,7 @@
- name: Move bin
tags: always
become: "{{ use_become }}"
ansible.builtin.copy:
remote_src: true
mode: "0755"
@@ -37,6 +43,7 @@
- name: Cleanup
tags: always
become: "{{ use_become }}"
ansible.builtin.file:
path: "{{ software_atuin_unpack_file }}"
state: absent
@@ -44,6 +51,7 @@
- name: Setup config dirctories
tags:
- config
become: "{{ use_become }}"
ansible.builtin.file:
mode: "{{ item.mode }}"
path: "{{ home }}/{{ item.path }}"
@@ -58,6 +66,7 @@
- name: Copy config {{ context }}
tags:
- config
become: "{{ use_become }}"
ansible.builtin.copy:
src: "{{ item.src }}"
dest: "{{ home }}/{{ item.path }}"