---
- lineinfile: dest=/home/{{ user }}/.bashrc line='cd {{ project_dir }}'

---
- lineinfile: dest=/home/{{ user }}/.bashrc line='cd {{ project_dir }}' create=yes

Create .bashrc if it does not exist
Create .bashrc if it does not exist
