This module lets you manage lua rocks with ansible.
Copy the module to your ansible library (any path in the ANSIBLE_LIBRARY environment variable), or
to a playbook-specific library (./library relative to your YAML file).
- name: Install the "luasocket" rock.
luarocks:
name: luasocket
- name: Install the "luasocket" rock in a more explicit way.
luarocks:
name: luasocket
state: present
- name: Install the "luasocket" rock from a specific server.
luarocks:
name: luasocket
server: http://http://rocks.moonscript.org
- name: Install the "luasocket" rock into your local tree.
luarocks:
name: luasocket
local: yes
- name: Install the "luasocket" rock into a specific tree.
luarocks:
name: luasocket
tree: /srv/foo/rocks
- name: Install version 2.0.2 of the "luasocket" rock.
luarocks:
name: luasocket
version: '2.0.2'
- name: Remove the "luasocket" rock.
luarocks:
name: luasocket
state: absentname: the name of the rock
state:absentorpresentversion: a specific version to install or removedeps_mode: how to handle dependenciesall: use all trees from the rocks_trees list for finding dependenciesone: use only the current tree (possibly set withtree)order: use trees based on order (use the current tree and all trees below it on the rocks_trees list)none: ignore dependencies altogether.
executable: your luarocks executable, useful if you'd like to use a specific version of lualocal: [boolean] whether to use your local rocks treetree: a specific rocks tree to useserver: a specific luarocks server to fetch rocks and rockspecs fromoverride_server: [boolean] use only the specified serverfalse: specified server takes priority over servers in config filetrue: specified server overrides all servers in config file
keep_other_versions: [boolean] whether to keep other versions of the rock (the --keep flag to luarocks install)