From 6a36811590e6815132198117cc69c542d6c7d9a8 Mon Sep 17 00:00:00 2001 From: Hyperling Date: Fri, 27 Mar 2026 18:16:54 -0700 Subject: [PATCH] Add tasks to download and install `env-shared` project's bashrc addition. --- tasks/general/acct_mgmt/users.yml | 45 ++++++++++++++++++++++++------- 1 file changed, 35 insertions(+), 10 deletions(-) diff --git a/tasks/general/acct_mgmt/users.yml b/tasks/general/acct_mgmt/users.yml index e55f5d6..7988533 100644 --- a/tasks/general/acct_mgmt/users.yml +++ b/tasks/general/acct_mgmt/users.yml @@ -1278,16 +1278,6 @@ ignore_errors: yes when: user_root.home != "" and user_user.home != "" -- name: General | Account Management | Users | Files | Ownership - file: - path: "{{ user_user.home }}/{{ item }}" - owner: "{{ user }}" - mode: '0755' - loop: - - .bashrc - - .zshrc - - .vimrc - - name: General | Account Management | Users | Files | Helper Functions (Reset) shell: "rm -v {{ global_bin }}/*.function" @@ -1302,3 +1292,38 @@ mode: 0755 with_fileglob: - "functions/*.function" + + +- name: General | Account Management | Users | Shared RC (env-shared) | Download + git: + repo: https://hyperling.com/me/env-shared + dest: "{{ shared_rc_install_dir }}" + clone: true + force: true + update: true + ignore_errors: yes + +- name: General | Account Management | Users | Shared RC (env-shared) | Install + copy: + src: "{{ shared_rc_install_dir }}/rc_shared.sh" + dest: "{{ item }}/.rc_shared" + owner: root + group: "{{ root_group }}" + mode: 0755 + loop: + - "{{ user_root.home }}" + - "{{ user_user.home }}" + ignore_errors: yes + when: user_root.home != "" and user_user.home != "" + + +- name: General | Account Management | Users | Files | Ownership + file: + path: "{{ user_user.home }}/{{ item }}" + owner: "{{ user }}" + mode: '0755' + loop: + - .bashrc + - .zshrc + - .vimrc + - .rc_shared