---
- hosts: all
  become: yes
  become_user: root
  become_method: sudo
  gather_facts: yes

  tasks:
    - name: Install python 2 and utils
      apt:
        package: [python, python-pip, ipython]
        update_cache: yes
        state: present

    - name: Install python 3 and utils
      apt:
        package: [python3, python3-pip, ipython3]
        update_cache: yes
        state: present

---
- hosts: all
  become: yes
  become_user: root
  become_method: sudo
  gather_facts: yes

  tasks:
    - name: Install python 2 and utils
      apt:
        package: [python, python-pip, ipython]
        update_cache: yes
        state: present

    - name: Install python 3 and utils
      apt:
        package: [python3, python3-pip, ipython3]
        update_cache: yes
        state: present

    - name: Install pipenv
      pip:
        executable: pip3
        name: pipenv
        state: present
Add pipenv to python role
Add pipenv to python role
