---
- name: remove older libruby
  apt: pkg=libruby1.8 purge=yes state=absent

- name: install system tools
  apt: pkg={{ item }}
  with_items:
    - ack-grep
    - acl
    - auditd
    - build-essential
    - curl
    - dstat
    - ethtool
    - git
    - htop
    - iotop
    - iperf
    - ltrace
    - mtr
    - netcat
    - pstack
    - pv
    - ruby1.9.1
    - ruby1.9.1-dev
    - smem
    - socat
    - tree
    - vim
    - cdpr
    - sysstat
    - logrotate
    - ntp
    - vlan
    - lvm2
    - libpam-cracklib

- name: load vlan module
  lineinfile: dest=/etc/modules
              line="8021q"
  when: ansible_distribution_version == "14.04"

- name: install mcelog package
  apt: pkg=mcelog
  when: common.system_tools.mcelog|bool

# http://www.supermicro.com/support/faqs/faq.cfm?faq=14537
- name: blacklist mei
  lineinfile: dest=/etc/modprobe.d/blacklist.conf
              line="blacklist {{ item }}"
  with_items:
    - mei
    - mei_me

- name: install lm-sensors package
  apt: name=lm-sensors state=present update_cache=yes
  notify:
    - load sensors

- meta: flush_handlers

---
- name: remove older libruby
  apt: pkg=libruby1.8 purge=yes state=absent

- name: install system tools
  apt: pkg={{ item }}
  with_items:
    - ack-grep
    - acl
    - auditd
    - build-essential
    - curl
    - dstat
    - ethtool
    - git
    - htop
    - iftop
    - iotop
    - iperf
    - ltrace
    - mtr
    - netcat
    - pv
    - ruby1.9.1
    - ruby1.9.1-dev
    - smem
    - socat
    - tree
    - vim
    - cdpr
    - sysstat
    - logrotate
    - ntp
    - vlan
    - lvm2
    - libpam-cracklib

- name: load vlan module
  lineinfile: dest=/etc/modules
              line="8021q"
  when: ansible_distribution_version == "14.04"

- name: install mcelog package
  apt: pkg=mcelog
  when: common.system_tools.mcelog|bool

# http://www.supermicro.com/support/faqs/faq.cfm?faq=14537
- name: blacklist mei
  lineinfile: dest=/etc/modprobe.d/blacklist.conf
              line="blacklist {{ item }}"
  with_items:
    - mei
    - mei_me

- name: install lm-sensors package
  apt: name=lm-sensors state=present update_cache=yes
  notify:
    - load sensors

- meta: flush_handlers

Remove pstack and add iftop
Remove pstack and add iftop

Removing pstack from the common requirements as it does not seem to
be used by anyone and not available on Power.

Add iftop while we are at it.
