--- - 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"