More optimation of domain bugs

This commit is contained in:
2025-02-21 08:04:52 +01:00
parent c4b622ccdb
commit 10b2ead705
9 changed files with 48 additions and 16 deletions

View File

@@ -3,4 +3,11 @@
src: "bashrc.j2"
dest: "{{ '/root/.bashrc' if user_name == 'root' else '/home/' ~ user_name ~ '/.bashrc' }}"
owner: "{{user_name}}"
group: "{{user_name}}"
- name: create .bash_profile
template:
src: "bash_profile.j2"
dest: "{{ '/root/.bash_profile' if user_name == 'root' else '/home/' ~ user_name ~ '/.bash_profile' }}"
owner: "{{user_name}}"
group: "{{user_name}}"

View File

@@ -0,0 +1,5 @@
#
# ~/.bash_profile
#
[[ -f ~/.bashrc ]] && . ~/.bashrc