---
- name: Install packages
  become: yes
  apt: name={{item}} state=installed
  with_items:
    - fonts-powerline
    - git-core
    - zsh

- name: Change user's shell to zsh
  shell: chsh {{ username_on_the_host.stdout }} --shell `which zsh`
  become: yes

# Install oh-my-zsh, forcing it to think that the shell has already been changed to zsh, to avoid "Authentication failure" errors.
- name: Install Oh-My-Zsh
  shell: SHELL=/usr/bin/zsh sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
  args:
    creates: ~/.oh-my-zsh

---
- name: Install packages
  become: yes
  apt: name={{item}} state=installed
  with_items:
    - fonts-powerline
    - git-core
    - zsh

- name: Change user's shell to zsh
  shell: chsh {{ username_on_the_host.stdout }} --shell `which zsh`
  become: yes

Remove oh-my-zsh (replaced with antigen)
Remove oh-my-zsh (replaced with antigen)
