community.general.bower – Manage bower packages with bower¶
Note
This plugin is part of the community.general collection (version 1.3.6).
To install it use: ansible-galaxy collection install community.general
.
To use it in a playbook, specify: community.general.bower
.
Parameters¶
Examples¶
- name: Install "bootstrap" bower package.
community.general.bower:
name: bootstrap
- name: Install "bootstrap" bower package on version 3.1.1.
community.general.bower:
name: bootstrap
version: '3.1.1'
- name: Remove the "bootstrap" bower package.
community.general.bower:
name: bootstrap
state: absent
- name: Install packages based on bower.json.
community.general.bower:
path: /app/location
- name: Update packages based on bower.json to their latest version.
community.general.bower:
path: /app/location
state: latest
# install bower locally and run from there
- npm:
path: /app/location
name: bower
global: no
- community.general.bower:
path: /app/location
relative_execpath: node_modules/.bin
Authors¶
Michael Warkentin (@mwarkentin)