fixing issues
This commit is contained in:
@@ -1,32 +1,37 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Download zls archive
|
||||
ansible.builtin.set_fact:
|
||||
|
||||
- name: Check if zls exists
|
||||
ansible.builtin.stat:
|
||||
path: "{{ path.archive }}/{{ zls_path }}/zls"
|
||||
path: "{{ path.archive }}/zls/{{ zls.path }}/zls"
|
||||
register: r_zls_stat
|
||||
|
||||
- name: Update/install zls
|
||||
block:
|
||||
- name: Download zls archive
|
||||
register: get_url_zls
|
||||
ansible.builtin.get_url:
|
||||
dest: "{{ d_tempfile.path }}/{{ zls_pkg }}"
|
||||
url: "{{ zls.base_url }}/{{ zls_pkg }}"
|
||||
dest: "{{ d_tempdir.path }}/{{ zls.pkg }}"
|
||||
url: "{{ zls.base_url }}/{{ zls.pkg }}"
|
||||
decompress: false
|
||||
mode: '0644'
|
||||
|
||||
- name: Create zls archive dir
|
||||
become: "{{ ext_become }}"
|
||||
ansible.builtin.file:
|
||||
state: directory
|
||||
mode: '0755'
|
||||
path: "{{ path.archive }}/zls/{{ zls.path }}"
|
||||
|
||||
- name: Extract zls package
|
||||
become: "{{ ext_become }}"
|
||||
ansible.builtin.unarchive:
|
||||
dest: "{{ path.archive }}"
|
||||
src: "{{ d_tempfile.path }}/{{ zls_pkg }}"
|
||||
dest: "{{ path.archive }}/zls/{{ zls.path }}"
|
||||
src: "{{ d_tempdir.path }}/{{ zls.pkg }}"
|
||||
remote_src: true
|
||||
|
||||
- name: Link zls binary
|
||||
become: "{{ ext_become }}"
|
||||
ansible.builtin.file:
|
||||
state: link
|
||||
src: "{{ path.archive }}/{{ zls_path }}/zls"
|
||||
src: "{{ path.archive }}/zls/{{ zls.path }}/zls"
|
||||
path: "{{ path.bin }}/zls"
|
||||
|
||||
Reference in New Issue
Block a user