tomi77.grunt
ansible-grunt
An Ansible role to run Grunt tasks
Parameters
| Name | Default | Description |
|---|---|---|
| grunt_executable | Path to the grunt program to use. |
|
| task | Task(s) to execute | |
| chdir | . | Location of the project |
| node_version | NVM Node.js version tag | |
| nvm_init_script | Path to the BASH script that activates NVM |
Returns
The fact grunt_output contains the output from the shell.
Examples
# Run the default task
- tomi77.grunt
# Use grunt installed locally
- role: tomi77.grunt
grunt_executable: ./node_modules/.bin/
# Run the build task
- role: tomi77.grunt
task: build
# Specify the project location
- role: tomi77.grunt
chdir: /location/of/a/project
# Run multiple tasks
- role: tomi77.grunt
task:
- prepare
- build
- clean
# Run using NVM
- role: tomi77.grunt
node_version: stable
nvm_init_script: /home/travis/.nvm/nvm.sh
Installa
ansible-galaxy install tomi77.gruntLicenza
mit
Download
160
Proprietario
Owner of @go-loremipsum @go-passwd @protobuf-gis @gosoap
