- name: Copy bashrc copy: src: files/bashrc dest: /root/.bashrc owner: root group: root mode: 0644 - name: set .bash_profile with var copy: content: '[[ -f ~/.bashrc ]] && . ~/.bashrc' dest: /root/.bash_profile owner: root group: root mode: 0644