mirror of
https://codeberg.org/ProgramSnail/config.git
synced 2026-01-10 05:35:06 +00:00
separate install and dev roles, box basic playbook
This commit is contained in:
parent
58966f9e4a
commit
f7a6f59fc6
9 changed files with 44 additions and 14 deletions
64
roles/dev/tasks/txt.yml
Normal file
64
roles/dev/tasks/txt.yml
Normal file
|
|
@ -0,0 +1,64 @@
|
|||
- name: Get latest typst version
|
||||
community.general.github_release:
|
||||
user: typst
|
||||
repo: typst
|
||||
action: latest_release
|
||||
register: typst_version
|
||||
|
||||
- name: "Installing typst {{ typst_version.tag }}"
|
||||
become: true
|
||||
ansible.builtin.unarchive:
|
||||
remote_src: yes
|
||||
# TODO: insert v before version ??
|
||||
src: "https://github.com/typst/typst/releases/download/{{ typst_version.tag }}/typst-x86_64-unknown-linux-musl.tar.xz"
|
||||
dest: "/usr/bin/"
|
||||
keep_newer: yes
|
||||
mode: a+x
|
||||
extra_opts:
|
||||
- --strip=1
|
||||
- --no-anchored
|
||||
- typst
|
||||
|
||||
- name: Get latest tinymist (typst lsp) version
|
||||
community.general.github_release:
|
||||
user: Myriad-Dreamin
|
||||
repo: tinymist
|
||||
action: latest_release
|
||||
register: tinymist_version
|
||||
|
||||
- name: "Installing tinymist (typst lsp) {{ tinymist_version.tag }}"
|
||||
become: true
|
||||
ansible.builtin.unarchive:
|
||||
remote_src: yes
|
||||
# TODO: insert v before version ??, rc ??
|
||||
src: "https://github.com/Myriad-Dreamin/tinymist/releases/download/{{ tinymist_version.tag }}/tinymist-x86_64-unknown-linux-gnu.tar.gz"
|
||||
dest: "/usr/bin/"
|
||||
mode: a+x
|
||||
keep_newer: yes
|
||||
extra_opts:
|
||||
- --strip=1
|
||||
- --no-anchored
|
||||
- tinymist
|
||||
|
||||
- name: Get latest codebook (spellcheck lsp) version
|
||||
community.general.github_release:
|
||||
user: blopker
|
||||
repo: codebook
|
||||
action: latest_release
|
||||
register: codebook_version
|
||||
|
||||
- name: "Installing codebook (spellcheck lsp) {{ codebook_version.tag }}"
|
||||
become: true
|
||||
ansible.builtin.unarchive:
|
||||
remote_src: yes
|
||||
# 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"
|
||||
dest: "/usr/bin/"
|
||||
mode: a+x
|
||||
keep_newer: yes
|
||||
extra_opts:
|
||||
- --strip=1
|
||||
- --no-anchored
|
||||
- codebook-lsp
|
||||
|
||||
# TODO: codebook setup (add to helix config, etc.)
|
||||
Loading…
Add table
Add a link
Reference in a new issue