---

- name: Update apt-cache
  apt: update_cache=yes cache_valid_time=3600
  sudo: yes

- name: Upgrade the OS
  apt: upgrade=yes
  sudo: yes

- name: Install common packages
  apt: pkg={{ item }} state=latest
  sudo: yes
  with_items:
      - build-essential
      - git
      - tree
      - vim
      - curl
      - wget
      - zip
      - rsync

- name: Add Github's fingerprint to the known_hosts file
  copy: src=known_hosts dest=~/.ssh/known_hosts


---

- name: Update apt-cache
  apt: update_cache=yes cache_valid_time=3600
  sudo: yes

- name: Upgrade the OS
  apt: upgrade=yes
  sudo: yes

- name: Install common packages
  apt: pkg={{ item }} state=latest
  sudo: yes
  with_items:
      - build-essential
      - git
      - tree
      - vim
      - curl
      - wget
      - zip
      - rsync
      - python-software-properties

- name: Add Ansible apt repository
  sudo: yes
  apt_repository: repo='ppa:rquillo/ansible' state=present

- name: Install Ansible
  apt: pkg=ansible state=latest

- name: Add Github's fingerprint to the known_hosts file
  copy: src=known_hosts dest=~/.ssh/known_hosts


Install ansible on the guest machine.
Install ansible on the guest machine.
