--- # Bash Configuration Tasks - name: Configure bash prompt for installer user lineinfile: path: /home/installer/.bashrc regexp: '^PS1=' line: 'PS1="\033[0;32m[\u@\h]\w\033[m: $ "' create: yes owner: installer group: installer mode: '0644' backup: yes - name: Configure bash prompt for root user lineinfile: path: /root/.bashrc regexp: '^PS1=' line: 'PS1="\033[0;31m[\u@\h]\w\033[m: # "' create: yes owner: root group: root mode: '0644' backup: yes - name: Configure default bash prompt in /etc/skel for new users lineinfile: path: /etc/skel/.bashrc regexp: '^PS1=' line: 'PS1="\033[0;32m[\u@\h]\w\033[m: $ "' create: yes owner: root group: root mode: '0644' backup: yes