2022-08-01 03:41:35 -05:00
|
|
|
---
|
2022-08-03 00:32:32 -05:00
|
|
|
- name: Install Lua for RedHat based systems
|
2022-08-01 03:41:35 -05:00
|
|
|
become: true
|
2022-08-03 00:32:32 -05:00
|
|
|
ansible.builtin.dnf:
|
|
|
|
name:
|
|
|
|
- luajit
|
|
|
|
- lua
|
|
|
|
- luarocks
|
|
|
|
state: present
|
|
|
|
when: ansible_facts.os_family == 'RedHat'
|
|
|
|
|
|
|
|
- name: Install Lua for Debian based systems
|
2022-08-02 21:24:10 -05:00
|
|
|
become: true
|
2022-08-03 00:32:32 -05:00
|
|
|
ansible.builtin.apt:
|
|
|
|
name:
|
|
|
|
- luajit
|
|
|
|
- "lua{{ debian_lua_version | default(5.4) }}"
|
|
|
|
- luarocks
|
|
|
|
state: present
|
|
|
|
when: ansible_facts.os_family == 'Debian'
|
|
|
|
|
|
|
|
- name: Install Lua for MacOS
|
|
|
|
community.general.homebrew:
|
|
|
|
name:
|
|
|
|
- lua
|
|
|
|
- luarocks
|
|
|
|
- luajit
|
|
|
|
state: present
|
|
|
|
when: ansible_facts.distribution == 'MacOSX'
|
|
|
|
|
|
|
|
- name: Install Lua for Arch
|
2022-08-05 15:39:49 -05:00
|
|
|
become: true
|
2022-08-03 00:32:32 -05:00
|
|
|
community.general.pacman:
|
|
|
|
name:
|
|
|
|
- lua
|
|
|
|
- luajit
|
|
|
|
- luarocks
|
|
|
|
state: present
|
|
|
|
when: ansible_facts.distribution == 'Archlinux'
|