---
- hosts: kv:index:n1ql
  tasks:
  - yum: state=latest name=epel-release
  - yum: state=latest name={{item}}
    with_items:
      - atop
      - gdb
      - htop
      - iotop
      - iperf
      - iptraf
      - moreutils
      - net-tools
      - numactl
      - psmisc
      - rsync
      - sysstat
      - tree
      - vim
      - wget

- hosts: kv:index:n1ql
  tasks:
  - shell: iptables -F

- hosts: kv:index:n1ql
  tasks:
  - group: name=couchbase
  - user:  name=couchbase group=couchbase

- hosts: kv:index:n1ql
  tasks:
  - file: path=/data  owner=couchbase group=couchbase

- hosts: kv
  tasks:
  - stat: path=/index
    register: index
  - file: path=/index owner=couchbase group=couchbase
    when: index.stat.exists

---
- hosts: kv:index:n1ql
  tasks:
  - yum: state=latest name=epel-release
  - yum: state=latest name={{item}}
    with_items:
      - atop
      - fio
      - gdb
      - htop
      - iotop
      - iperf
      - iptraf
      - moreutils
      - net-tools
      - numactl
      - psmisc
      - rsync
      - sysstat
      - tree
      - vim
      - wget

- hosts: kv:index:n1ql
  tasks:
  - shell: iptables -F

- hosts: kv:index:n1ql
  tasks:
  - group: name=couchbase
  - user:  name=couchbase group=couchbase

- hosts: kv:index:n1ql
  tasks:
  - file: path=/data  owner=couchbase group=couchbase

- hosts: kv
  tasks:
  - stat: path=/index
    register: index
  - file: path=/index owner=couchbase group=couchbase
    when: index.stat.exists

Add fio to server dependencies
Add fio to server dependencies

Change-Id: I1f1024d2ce371bfe1434001d2da3b19f59345cee
Reviewed-on: http://review.couchbase.org/67278
Reviewed-by: Pavel Paulau <dd88eded64e90046a680e3a6c0828ceb8fe8a0e7@gmail.com>
Tested-by: buildbot <80754af91bfb6d1073585b046fe0a474ce868509@couchbase.com>
