- name: Install pips
  pip:
    name: "{{ item }}"
    state: latest
  with_items:
    - "{{ core_pips | default([]) }}"

- name: Install pips (pip2)
  pip:
    name: "{{ item }}"
    executable: pip2
    state: latest
  with_items:
    - "{{ core_pips | default([]) }}"

- name: Install pips (pip3)
  pip:
    name: "{{ item }}"
    executable: pip3
    state: latest
  with_items:
    - "{{ core_pips | default([]) }}"

Install pips with v2 and v3
Install pips with v2 and v3
