This repository has been archived on 2020-09-27. You can view files and clone it, but cannot push or open issues or pull requests.
ansible-role-warehost/warehost-client-web/tasks/ubuntu.yml

33 lines
729 B
YAML

---
- name: Install packages
apt: name={{ item }}
with_items:
- git
- npm
- rsync
- name: Install global node packages
npm: name={{item}} global=yes
with_items:
- grunt-cli
- bower
- name: Clone repository
git: repo={{ warehost_webclient_repo }}
dest=/usr/src/warehost-client-web/
version={{warehost_webclient_version}}
force=yes
- name: Install node dependencies
npm: path=/usr/src/warehost-client-web
- name: Install bower dependencies
command: nodejs /usr/local/bin/bower install --allow-root
args:
chdir: "/usr/src/warehost-client-web"
- name: Build warehost-client-web
command: nodejs /usr/local/bin/grunt build
args:
chdir: "/usr/src/warehost-client-web"