Skip to content

Commit

Permalink
update stylua role vars
Browse files Browse the repository at this point in the history
  • Loading branch information
geloman committed Nov 19, 2024
1 parent 1898861 commit 7c797ea
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions ansible/roles/stylua/tasks/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
- name: Download Stylua binary
ansible.builtin.get_url:
url: "{{ stylua_download_url }}"
dest: /tmp/stylua-linux.zip
dest: "/tmp/{{ stylua_compress_file }}"

- name: Install unzip package
package:
Expand All @@ -11,7 +11,7 @@

- name: Extract and move Stylua binary
ansible.builtin.unarchive:
src: /tmp/stylua-linux.zip
src: "/tmp/{{ stylua_compress_file }}"
dest: /usr/local/bin
remote_src: yes

Expand Down
6 changes: 5 additions & 1 deletion ansible/roles/stylua/vars/main.yaml
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
stylua_download_url: "https://github.com/JohnnyMorganz/StyLua/releases/latest/download/stylua-linux.zip"
stylua_remote_url: "https://github.com"
stylua_repository: "JohnnyMorganz/StyLua"
stylua_release_tag: "v2.0.1"
stylua_compress_file: "stylua-linux-x86_64.zip"
stylua_download_url: "{{ stylua_remote_url }}/{{ stylua_repository }}/releases/download/{{ stylua_release_tag }}/{{ stylua_compress_file }}"

0 comments on commit 7c797ea

Please sign in to comment.