mirror of
https://github.com/morten-olsen/configs.git
synced 2026-02-08 00:46:24 +01:00
Add arch support
This commit is contained in:
@@ -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 }}"
|
||||
|
||||
Reference in New Issue
Block a user