---
- name: Install powerline-status
  pip:
    name: powerline-status
    executable: pip3
  become: true
  when: ansible_system == 'Darwin'

- name: Install powerline
  package:
    name: powerline
    state: present
  become: true
  when: ansible_system == 'Linux'

- name: Install powerline files using stow
  shell: stow -t {{ ansible_user_dir }} -S powerline
  args:
    chdir: "{{ role_path }}/files"

---
- name: Install powerline-status and dependences
  pip:
    name: ['powerline-status', 'psutil']
    executable: pip3
  become: true
  when: ansible_system == 'Darwin'

- name: Install powerline
  package:
    name: powerline
    state: present
  become: true
  when: ansible_system == 'Linux'

- name: Install powerline files using stow
  shell: stow -t {{ ansible_user_dir }} -S powerline
  args:
    chdir: "{{ role_path }}/files"

Add psutil to list of dependences
Add psutil to list of dependences
