Dot_Files/tasks/install-lua.yml

40 lines
823 B
YAML
Raw Normal View History

2022-08-01 03:41:35 -05:00
---
- name: Install Lua for RedHat based systems
2022-08-01 03:41:35 -05:00
become: true
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
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
community.general.pacman:
name:
- lua
- luajit
- luarocks
state: present
when: ansible_facts.distribution == 'Archlinux'