Skip to content

Commit

Permalink
feat(lua): install lua 5.1 in macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
AlejandroSuero committed Sep 13, 2024
1 parent 67318cf commit 4bc771a
Showing 1 changed file with 36 additions and 4 deletions.
40 changes: 36 additions & 4 deletions roles/lua/tasks/MacOSX.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,41 @@
---
- name: Lua | Install LUA
block:
- name: Lua | Install lua-5.1
ansible.builtin.get_url:
url: https://www.lua.org/ftp/lua-5.1.tar.gz
dest: /tmp/lua-5.1.tar.gz
mode: "0755"
force: true
notify:
- Cleanup lua downloaded tar

- name: Lua | Extract lua tar file
ansible.builtin.unarchive:
src: /tmp/lua-5.1.tar.gz
dest: /tmp
remote_src: true

- name: Lua | Install lua
ansivle.builtin.make:
chdir: /tmp/lua-5.1/
target: macosx

- name: Lua | Install lua install

Check failure on line 24 in roles/lua/tasks/MacOSX.yml

View workflow job for this annotation

GitHub Actions / lint

fqcn[canonical]

You should use canonical module name `community.general.make` instead of `ansible.builtin.make`.
ansible.builtin.make:
chdir: /tmp/lua-5.1/
target: install
become: true

- name: Lua | Ensure clean lua installation
ansible.builtin.file:
path: /tmp/lua-5.1/
state: absent
become: true

- name: Lua | {{ ansible_distribution }}
community.general.homebrew:
name:
- lua
- luarocks
- luajit
state: present
Expand All @@ -13,11 +46,10 @@
changed_when: false
check_mode: false

- name: Lua | luarocks install vusted
- name: Lua | luarocks install dependencies
ansible.builtin.command:
cmd: luarocks --lua-version=5.1 install {{ item }}
loop:
- vusted
- luacheck
- rest.nvim
- plenary.nvim
changed_when: false

0 comments on commit 4bc771a

Please sign in to comment.