mirror of
https://codeberg.org/ProgramSnail/config.git
synced 2026-01-09 21:25:06 +00:00
Compare commits
3 commits
a6e521986b
...
586835c102
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
586835c102 | ||
|
|
2c2270ce8c | ||
|
|
2fe632b325 |
9 changed files with 44 additions and 15 deletions
21
roles/common/tasks/main.yml
Normal file
21
roles/common/tasks/main.yml
Normal file
|
|
@ -0,0 +1,21 @@
|
||||||
|
- name: Creating dotfiles dir
|
||||||
|
ansible.builtin.file:
|
||||||
|
path: "{{ ansible_env.HOME }}/.config"
|
||||||
|
state: directory
|
||||||
|
mode: a
|
||||||
|
|
||||||
|
- name: Creating local bin dir
|
||||||
|
ansible.builtin.file:
|
||||||
|
path: "{{ ansible_env.HOME }}/.local/bin"
|
||||||
|
state: directory
|
||||||
|
mode: a
|
||||||
|
|
||||||
|
- name: Getting programs list to check fish presence
|
||||||
|
ansible.builtin.package_facts:
|
||||||
|
manager: auto
|
||||||
|
|
||||||
|
- name: Updating fish path to include local bin dir
|
||||||
|
ansible.builtin.shell: fish_add_path -m {{ ansible_env.HOME }}/.local/bin
|
||||||
|
args:
|
||||||
|
executable: /usr/bin/fish
|
||||||
|
changed_when: false
|
||||||
2
roles/dev/defaults/main.yml
Normal file
2
roles/dev/defaults/main.yml
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
bin_install_path: '{{ ansible_env.HOME }}/.local/bin'
|
||||||
|
|
||||||
|
|
@ -10,7 +10,7 @@
|
||||||
ansible.builtin.unarchive:
|
ansible.builtin.unarchive:
|
||||||
remote_src: true
|
remote_src: true
|
||||||
src: "https://github.com/typst/typst/releases/download/{{ typst_version.tag }}/typst-x86_64-unknown-linux-musl.tar.xz"
|
src: "https://github.com/typst/typst/releases/download/{{ typst_version.tag }}/typst-x86_64-unknown-linux-musl.tar.xz"
|
||||||
dest: "/usr/bin/"
|
dest: "{{ bin_install_path }}/"
|
||||||
keep_newer: true
|
keep_newer: true
|
||||||
mode: a+x
|
mode: a+x
|
||||||
extra_opts:
|
extra_opts:
|
||||||
|
|
@ -30,7 +30,7 @@
|
||||||
ansible.builtin.unarchive:
|
ansible.builtin.unarchive:
|
||||||
remote_src: true
|
remote_src: true
|
||||||
src: "https://github.com/Myriad-Dreamin/tinymist/releases/download/{{ tinymist_version.tag }}/tinymist-x86_64-unknown-linux-gnu.tar.gz"
|
src: "https://github.com/Myriad-Dreamin/tinymist/releases/download/{{ tinymist_version.tag }}/tinymist-x86_64-unknown-linux-gnu.tar.gz"
|
||||||
dest: "/usr/bin/"
|
dest: "{{ bin_install_path }}/"
|
||||||
mode: a+x
|
mode: a+x
|
||||||
keep_newer: true
|
keep_newer: true
|
||||||
extra_opts:
|
extra_opts:
|
||||||
|
|
@ -51,12 +51,12 @@
|
||||||
remote_src: true
|
remote_src: true
|
||||||
# TODO: insert v before version ??
|
# TODO: insert v before version ??
|
||||||
src: "https://github.com/blopker/codebook/releases/download/{{ codebook_version.tag }}/codebook-lsp-x86_64-unknown-linux-musl.tar.gz"
|
src: "https://github.com/blopker/codebook/releases/download/{{ codebook_version.tag }}/codebook-lsp-x86_64-unknown-linux-musl.tar.gz"
|
||||||
dest: "/usr/bin/"
|
dest: "{{ bin_install_path }}/"
|
||||||
mode: a+x
|
mode: a+x
|
||||||
keep_newer: true
|
keep_newer: true
|
||||||
extra_opts:
|
extra_opts:
|
||||||
- --strip=1
|
# - --strip=1
|
||||||
- --no-anchored
|
- --no-anchored
|
||||||
- codebook-lsp
|
- 'codebook-lsp'
|
||||||
|
|
||||||
# TODO: codebook setup (add to helix config, etc.)
|
# TODO: codebook setup (add to helix config, etc.)
|
||||||
|
|
|
||||||
2
roles/dotfiles/defaults/main.yml
Normal file
2
roles/dotfiles/defaults/main.yml
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
bin_install_path: '{{ ansible_env.HOME }}/.local/bin'
|
||||||
|
|
||||||
|
|
@ -1,8 +1,6 @@
|
||||||
- name: Creating dotfiles dir
|
- name: Common actions
|
||||||
ansible.builtin.file:
|
ansible.builtin.include_role:
|
||||||
path: "{{ ansible_env.HOME }}/.config"
|
name: common
|
||||||
state: directory
|
|
||||||
mode: a
|
|
||||||
|
|
||||||
- name: Bash config
|
- name: Bash config
|
||||||
ansible.builtin.import_tasks: bash.yml
|
ansible.builtin.import_tasks: bash.yml
|
||||||
|
|
|
||||||
2
roles/installs/defaults/main.yml
Normal file
2
roles/installs/defaults/main.yml
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
bin_install_path: '{{ ansible_env.HOME }}/.local/bin'
|
||||||
|
|
||||||
|
|
@ -1,3 +1,7 @@
|
||||||
|
- name: Common actions
|
||||||
|
ansible.builtin.include_role:
|
||||||
|
name: common
|
||||||
|
|
||||||
- name: Installing ansible packages
|
- name: Installing ansible packages
|
||||||
ansible.builtin.import_tasks: ansible.yml
|
ansible.builtin.import_tasks: ansible.yml
|
||||||
when: "'ansible' in apps"
|
when: "'ansible' in apps"
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@
|
||||||
become: true
|
become: true
|
||||||
ansible.builtin.get_url:
|
ansible.builtin.get_url:
|
||||||
url: "https://github.com/Snawoot/hola-proxy/releases/download/{{ hola_version.tag }}/hola-proxy.linux-amd64"
|
url: "https://github.com/Snawoot/hola-proxy/releases/download/{{ hola_version.tag }}/hola-proxy.linux-amd64"
|
||||||
dest: "/usr/bin/hola-proxy"
|
dest: "{{ bin_install_path }}/hola-proxy"
|
||||||
mode: a+x
|
mode: a+x
|
||||||
force: true
|
force: true
|
||||||
|
|
||||||
|
|
@ -23,7 +23,7 @@
|
||||||
- name: Installing opera-proxy {{ opera_version.tag }}
|
- name: Installing opera-proxy {{ opera_version.tag }}
|
||||||
become: true
|
become: true
|
||||||
ansible.builtin.get_url:
|
ansible.builtin.get_url:
|
||||||
url: "https://github.com/Snawoot/opera-proxy/releases/download/{{ opera_version.tag }}/hola-proxy.linux-amd64"
|
url: "https://github.com/Snawoot/opera-proxy/releases/download/{{ opera_version.tag }}/opera-proxy.linux-amd64"
|
||||||
dest: "/usr/bin/hola-proxy"
|
dest: "{{ bin_install_path }}/opera-proxy"
|
||||||
mode: a+x
|
mode: a+x
|
||||||
force: true
|
force: true
|
||||||
|
|
|
||||||
|
|
@ -45,7 +45,7 @@
|
||||||
ansible.builtin.unarchive:
|
ansible.builtin.unarchive:
|
||||||
remote_src: true
|
remote_src: true
|
||||||
src: "https://github.com/InioX/matugen/releases/download/v2.4.1/matugen-2.4.1-x86_64.tar.gz"
|
src: "https://github.com/InioX/matugen/releases/download/v2.4.1/matugen-2.4.1-x86_64.tar.gz"
|
||||||
dest: "/usr/bin/" # TODO: user local install (?)
|
dest: "{{ bin_install_path }}/"
|
||||||
mode: a+x
|
mode: a+x
|
||||||
keep_newer: true
|
keep_newer: true
|
||||||
extra_opts:
|
extra_opts:
|
||||||
|
|
@ -64,6 +64,6 @@
|
||||||
become: true
|
become: true
|
||||||
ansible.builtin.get_url:
|
ansible.builtin.get_url:
|
||||||
url: "https://github.com/AvengeMedia/dgop/releases/download/{{ dgop_version.tag }}/dgop-{{ dgop_version.tag }}-linux-amd64"
|
url: "https://github.com/AvengeMedia/dgop/releases/download/{{ dgop_version.tag }}/dgop-{{ dgop_version.tag }}-linux-amd64"
|
||||||
dest: "/usr/bin/dgop" # TODO: user local install (?)
|
dest: "{{ bin_install_path }}/dgop"
|
||||||
mode: a+x
|
mode: a+x
|
||||||
force: true
|
force: true
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue