Ignore some downloads for x86_64 when on a different archtecture
This commit is contained in:
parent
26cecb7147
commit
c653adfd4d
2 changed files with 17 additions and 4 deletions
|
@ -49,10 +49,12 @@
|
|||
ansible.builtin.uri:
|
||||
url: https://github.com/latex-lsp/texlab/releases/latest
|
||||
register: latest_http_content
|
||||
when: ansible_facts.architecture == 'x86_64'
|
||||
|
||||
- name: Set latest texlab version
|
||||
ansible.builtin.set_fact:
|
||||
texlab_version: "{{ latest_http_content.url | split('/') | last }}"
|
||||
when: ansible_facts.architecture == 'x86_64'
|
||||
|
||||
- name: Get latest texlab binary
|
||||
ansible.builtin.unarchive:
|
||||
|
@ -60,15 +62,18 @@
|
|||
remote_src: true
|
||||
dest: ~/.local/bin/
|
||||
mode: 0755
|
||||
when: ansible_facts.architecture == 'x86_64'
|
||||
|
||||
- name: Find latest lua-language-server version
|
||||
ansible.builtin.uri:
|
||||
url: https://github.com/luals/lua-language-server/releases/latest
|
||||
register: latest_http_content
|
||||
when: ansible_facts.architecture == 'x86_64'
|
||||
|
||||
- name: Set latest lua-language-server version
|
||||
ansible.builtin.set_fact:
|
||||
lua_lsp_version: "{{ latest_http_content.url | split('/') | last }}"
|
||||
when: ansible_facts.architecture == 'x86_64'
|
||||
|
||||
- name: Create tempdir for extracting lua-language-server
|
||||
ansible.builtin.file:
|
||||
|
@ -76,6 +81,7 @@
|
|||
state: directory
|
||||
mode: 0755
|
||||
changed_when: false
|
||||
when: ansible_facts.architecture == 'x86_64'
|
||||
|
||||
- name: Get latest lua-lsp archive
|
||||
ansible.builtin.unarchive:
|
||||
|
@ -83,6 +89,7 @@
|
|||
remote_src: true
|
||||
dest: /tmp/lualsp/
|
||||
changed_when: false
|
||||
when: ansible_facts.architecture == 'x86_64'
|
||||
|
||||
- name: Copy lua-lsp binary
|
||||
ansible.builtin.copy:
|
||||
|
@ -90,15 +97,18 @@
|
|||
remote_src: true
|
||||
dest: ~/.local/bin/
|
||||
mode: 0755
|
||||
when: ansible_facts.architecture == 'x86_64'
|
||||
|
||||
- name: Find latest rust-analyzer version
|
||||
ansible.builtin.uri:
|
||||
url: https://github.com/rust-lang/rust-analyzer/releases/latest
|
||||
register: latest_http_content
|
||||
when: ansible_facts.architecture == 'x86_64'
|
||||
|
||||
- name: Set latest rust-analyzer version
|
||||
ansible.builtin.set_fact:
|
||||
rust_analyzer_version: "{{ latest_http_content.url | split('/') | last }}"
|
||||
when: ansible_facts.architecture == 'x86_64'
|
||||
|
||||
- name: Create tempdir for extracting rust-analyzer
|
||||
ansible.builtin.file:
|
||||
|
@ -106,6 +116,7 @@
|
|||
state: directory
|
||||
mode: 0755
|
||||
changed_when: false
|
||||
when: ansible_facts.architecture == 'x86_64'
|
||||
|
||||
- name: Get latest rust-analyzer compressed binary
|
||||
ansible.builtin.get_url:
|
||||
|
@ -113,12 +124,14 @@
|
|||
dest: /tmp/rust-analyzer/
|
||||
mode: 0644
|
||||
changed_when: false
|
||||
when: ansible_facts.architecture == 'x86_64'
|
||||
|
||||
- name: Decompress rust-analyzer binary
|
||||
ansible.builtin.command:
|
||||
cmd: gzip -fd /tmp/rust-analyzer/rust-analyzer-x86_64-unknown-linux-gnu.gz
|
||||
chdir: /tmp/rust-analyzer
|
||||
changed_when: false
|
||||
when: ansible_facts.architecture == 'x86_64'
|
||||
|
||||
- name: Copy rust-analyzer binary
|
||||
ansible.builtin.copy:
|
||||
|
@ -126,6 +139,8 @@
|
|||
remote_src: true
|
||||
dest: ~/.local/bin/rust-analyzer
|
||||
mode: 0755
|
||||
when: ansible_facts.architecture == 'x86_64'
|
||||
|
||||
- name: Include marksman tasks
|
||||
ansible.builtin.include_tasks: marksman.yml
|
||||
when: ansible_facts.architecture == 'x86_64'
|
||||
|
|
|
@ -7,13 +7,11 @@
|
|||
|
||||
- name: Include Archlinux tasks
|
||||
ansible.builtin.include_tasks: archlinux.yml
|
||||
when:
|
||||
ansible_facts['distribution'] == 'Archlinux'
|
||||
when: ansible_facts['distribution'] == 'Archlinux'
|
||||
|
||||
- name: Include Debian tasks
|
||||
ansible.builtin.include_tasks: debian.yml
|
||||
when:
|
||||
ansible_facts['distribution'] == 'Debian'
|
||||
when: ansible_facts['distribution'] == 'Debian'
|
||||
|
||||
- name: Make sure needed directories exist
|
||||
ansible.builtin.file:
|
||||
|
|
Loading…
Add table
Reference in a new issue