---
# tasks file for ansible
- name: Install requirements for Ansible from apt
  apt: name=python-dev update_cache=yes

- name: Install Ansible
  pip: name=ansible

---
# tasks file for ansible
- name: Install requirements for Ansible from apt
  apt: name=python-dev update_cache=yes
  become: yes

- name: Install Ansible
  pip: name=ansible

Install from apt needs root privilege.
Install from apt needs root privilege.
