mirror of
https://codeberg.org/ProgramSnail/config.git
synced 2025-12-06 07:28:44 +00:00
bin path choice, proxy fix, common tasks
This commit is contained in:
parent
a6e521986b
commit
2fe632b325
7 changed files with 36 additions and 12 deletions
|
|
@ -12,3 +12,4 @@ container_tools:
|
||||||
- txt
|
- txt
|
||||||
haskell:
|
haskell:
|
||||||
- haskell
|
- haskell
|
||||||
|
bin_install_path: '.local/bin'
|
||||||
|
|
|
||||||
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
|
||||||
|
|
@ -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,7 +51,7 @@
|
||||||
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:
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
||||||
|
|
@ -24,6 +24,6 @@
|
||||||
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 }}/hola-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