THE HUGE REFACTORING CALENDER WEEK 33; Optimized Matrix and during this updated variables, and implemented better reset and cleanup mode handling, also solved some initial setup bugs

This commit is contained in:
2025-08-15 15:15:48 +02:00
parent 0228014d34
commit 022800425d
271 changed files with 1098 additions and 916 deletions

View File

@@ -1,14 +1,14 @@
# run_once_user: deactivated
- name: create .bashrc
template:
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}}"
- name: Deploy shell dotfiles
ansible.builtin.template:
src: "{{ item }}.j2"
dest: "{{ user_home }}/.{{ item }}"
owner: "{{ user_name }}"
group: "{{ user_group }}"
mode: "0644"
loop:
- bashrc
- bash_profile
loop_control:
label: ".{{ item }}"