Initialisation depot
This commit is contained in:
35
Migration/Ansible/roles/system/tasks/bash_config.yml
Normal file
35
Migration/Ansible/roles/system/tasks/bash_config.yml
Normal file
@@ -0,0 +1,35 @@
|
||||
---
|
||||
# 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
|
||||
|
||||
Reference in New Issue
Block a user