Files
Maison/Migration/Ansible/roles/system/tasks/bash_config.yml
2026-02-10 12:12:11 +01:00

36 lines
777 B
YAML

---
# 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