---
# Tasks specyfing commom tasks for all servers

- name: Copy sources list for apt
  copy: src=sources.list dest=/etc/apt/sources.list owner=root group=root mode=644 backup=yes
- name: Update apt repositories cache
  apt: update_cache=yes cache_valid_time=36000

- name: Ensure git is installed
  apt: name=git state=present
- name: Ensure vim is installed
  apt: name=vim state=present

#- name: Install pip on remote machine
#  apt: name=python-pip state=present
#- name: Install some basic python modules
#  pip: name={{item}} state=present
#  with_items: python_modules

---
# Tasks specyfing commom tasks for all servers

- name: Copy sources list for apt
  copy: src=sources.list dest=/etc/apt/sources.list owner=root group=root mode=644 backup=yes
- name: Update apt repositories cache
  apt: update_cache=yes
- name: Clear up home directory
  command: rm -rf {{item}} removes=/home/{{ansible_ssh_user}}/{{item}}
  with_items:
  - base.sh
  - chef.sh
  - cleanup.sh
  - puppetlabs-release-wheezy.deb
  - puppet.sh
  - ruby.sh
  - vagrant.sh
  - virtualbox.sh
  - zerodisk.sh

- name: Ensure git is installed
  apt: name=git state=present
- name: Ensure vim is installed
  apt: name=vim state=present

#- name: Install pip on remote machine
#  apt: name=python-pip state=present
#- name: Install some basic python modules
#  pip: name={{item}} state=present
#  with_items: python_modules

Remove apt cache update time limit
imouto-devel/roles/common: Remove apt cache update time limit

The update cache time limit on the second task of role 'common'
was causing failure in installation of some packages through apt.
So it is removed to avoid issues.
