---
- name: Install Bash Completion
  apt: package=bash-completion state=present
  sudo: yes

- name: Turn On Color Prompt
  lineinfile:
    dest: "{{ ansible_user_dir }}/.bashrc"
    line: "force_color_prompt=yes"
    regexp: '#?force_color_prompt=yes'
    state: present

- name: More User Friendly List Aliases
  lineinfile:
    dest: "{{ ansible_user_dir }}/.bashrc"
    line: "alias {{ item.alias }}='{{ item.command }}'"
    regexp: "^alias {{ item.alias }}="
    state: present
  with_items:
    - { alias: ll, command: "ls -lFh" }
    - { alias: la, command: "ls -lAh" }
    - { alias: l,  command: "ls -CF" }

- name: Cd to /vagrant on Log In
  lineinfile:
    dest: "{{ ansible_user_dir }}/.bashrc"
    line: cd /vagrant
    state: present
    insertafter: EOF
  when: ansible_hostname == "vagrant"

---
- name: Install Bash Completion
  apt: package=bash-completion state=present
  sudo: yes

- name: Turn On Color Prompt
  lineinfile:
    dest: "{{ ansible_user_dir }}/.bashrc"
    line: "force_color_prompt=yes"
    regexp: '#?force_color_prompt=yes'
    state: present

- name: More User Friendly List Aliases
  lineinfile:
    dest: "{{ ansible_user_dir }}/.bashrc"
    line: "alias {{ item.alias }}='{{ item.command }}'"
    regexp: "^alias {{ item.alias }}="
    state: present
  with_items:
    - { alias: ll, command: "ls -lFh" }
    - { alias: la, command: "ls -lAh" }
    - { alias: l,  command: "ls -CF" }

- name: Cd to /vagrant on Log In
  lineinfile:
    dest: "{{ ansible_user_dir }}/.bashrc"
    line: cd /vagrant
    state: present
    insertafter: EOF
  when: inventory_hostname == "vagrant"

Fix cd into /vagrant on login
Fix cd into /vagrant on login
