From 79a2c832b4d5b85919a17427093cc1b249bc5b46 Mon Sep 17 00:00:00 2001 From: Hyperling Date: Fri, 27 Mar 2026 18:22:27 -0700 Subject: [PATCH] Also install all the bin scripts. Split the permissions command so that .rc_shared is allowed to fail. --- tasks/general/acct_mgmt/users.yml | 31 ++++++++++++++++++++++++------- 1 file changed, 24 insertions(+), 7 deletions(-) diff --git a/tasks/general/acct_mgmt/users.yml b/tasks/general/acct_mgmt/users.yml index 7988533..7c13886 100644 --- a/tasks/general/acct_mgmt/users.yml +++ b/tasks/general/acct_mgmt/users.yml @@ -1278,6 +1278,16 @@ 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" @@ -1294,16 +1304,16 @@ - "functions/*.function" -- name: General | Account Management | Users | Shared RC (env-shared) | Download +- name: General | Account Management | Users | env-shared | Download git: - repo: https://hyperling.com/me/env-shared + repo: https://git.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 +- name: General | Account Management | Users | env-shared | Install | rc_shared copy: src: "{{ shared_rc_install_dir }}/rc_shared.sh" dest: "{{ item }}/.rc_shared" @@ -1316,14 +1326,21 @@ ignore_errors: yes when: user_root.home != "" and user_user.home != "" +- name: General | Account Management | Users | env-shared | Install | Scripts + copy: + src: "{{ shared_rc_install_dir }}/bin/*" + dest: "{{ global_bin }}/" + owner: root + group: "{{ root_group }}" + mode: 0755 + ignore_errors: yes -- name: General | Account Management | Users | Files | Ownership + +- name: General | Account Management | Users | env-shared | Permissions file: path: "{{ user_user.home }}/{{ item }}" owner: "{{ user }}" mode: '0755' loop: - - .bashrc - - .zshrc - - .vimrc - .rc_shared + ignore_errors: yes