---
- name: install EPEL
  yum: name=http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm state=present
  when: ansible_os_family == 'RedHat' and ansible_distribution_major_version == '6'

- name: install basic packages
  yum: name={{ item }} state=present
  with_items:
    - tmux
    - vim-enhanced
    - sysstat
    - wget
    - telnet
    - unzip
    - mailx
    - hdparm
    - ncdu
    - smartmontools
    - lsof
    - iftop
    - iotop
    - hdparm
    - virt-what
    - curl

- name: install additional packages
  yum: name={{ item }} state=present
  with_items:
      - tcpdump
      - tcpflow
      - atop
      - htop
      - git
  ignore_errors: True
  when: not common_utils_ascetic_install
---
- name: install EPEL
  yum: name=http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm state=present
  when: ansible_os_family == 'RedHat' and ansible_distribution_major_version == '6'

- name: install basic packages
  yum: name={{ item }} state=present
  with_items:
    - tmux
    - vim-enhanced
    - sysstat
    - wget
    - telnet
    - unzip
    - mailx
    - hdparm
    - ncdu
    - smartmontools
    - lsof
    - iftop
    - iotop
    - hdparm
    - virt-what
    - curl

- name: install additional packages
  yum: name={{ item }} state=present
  with_items:
      - tcpdump
      - atop
      - htop
      - git
  ignore_errors: True
  when: not common_utils_ascetic_install

# tcpflow does not seem to be present in default repos - should we install EPEL first?
- name: install more additional packages
  yum: name={{ item }} state=present
  with_items:
      - tcpflow
  ignore_errors: True
  when: not common_utils_ascetic_install

- name: enable atop
  service: name=atop state=started enabled=on

Move tcpflow to a separate task, enable atop service
Move tcpflow to a separate task, enable atop service
