community / community.general / 0.1.1 / module / bower Manage bower packages with bower Authors: Michael Warkentin (@mwarkentin) preview | supported by communitycommunity.general.bower (0.1.1) — module
Install with ansible-galaxy collection install community.general:==0.1.1
collections: - name: community.general version: 0.1.1
Manage bower packages with bower
- name: Install "bootstrap" bower package. bower: name: bootstrap
- name: Install "bootstrap" bower package on version 3.1.1. bower: name: bootstrap version: '3.1.1'
- name: Remove the "bootstrap" bower package. bower: name: bootstrap state: absent
- name: Install packages based on bower.json. bower: path: /app/location
- name: Update packages based on bower.json to their latest version. bower: path: /app/location state: latest
# install bower locally and run from there - npm: path: /app/location name: bower global: no
- bower: path: /app/location relative_execpath: node_modules/.bin
name: description: - The name of a bower package to install path: description: - The base path where to install the bower packages required: true state: choices: - present - absent - latest default: present description: - The state of the bower package offline: default: 'no' description: - Install packages from local cache, if the packages were installed before type: bool version: description: - The version to be installed production: default: 'no' description: - Install with --production flag type: bool relative_execpath: description: - Relative path to bower executable from install path