---
- name: install PM2 npm module
  npm: name=pm2 global=yes

- name: install cordova npm module
  npm: name=cordova global=yes

- name: copy the default couchdb configurations
  copy: src=local.ini dest=/usr/local/etc/couchdb/local.ini owner=root group=root mode=0777

- name: restart couchdb
  service: name=couchdb state=restarted

- name: perform the couchdb admin related tasks
  shell: /etc/ContentDiscovery/couchdb_tasks.sh

- name: restart couchdb
  service: name=couchdb state=restarted

---
- name: install PM2 npm module
  npm: name=pm2 global=yes

- name: copy the default couchdb configurations
  copy: src=local.ini dest=/usr/local/etc/couchdb/local.ini owner=root group=root mode=0777

- name: restart couchdb
  service: name=couchdb state=restarted

- name: perform the couchdb admin related tasks
  shell: /etc/ContentDiscovery/couchdb_tasks.sh

- name: restart couchdb
  service: name=couchdb state=restarted

Revert "[Rav/Mah] installing cordova npm with ansible"
Revert "[Rav/Mah] installing cordova npm with ansible"

This reverts commit 544bf7f9bb87fe5ead9e2edfe2e17f8bb4ef2aa8.
