Add tasks to download and install env-shared project's bashrc addition.
This commit is contained in:
@@ -1278,16 +1278,6 @@
|
|||||||
ignore_errors: yes
|
ignore_errors: yes
|
||||||
when: user_root.home != "" and user_user.home != ""
|
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)
|
- name: General | Account Management | Users | Files | Helper Functions (Reset)
|
||||||
shell: "rm -v {{ global_bin }}/*.function"
|
shell: "rm -v {{ global_bin }}/*.function"
|
||||||
@@ -1302,3 +1292,38 @@
|
|||||||
mode: 0755
|
mode: 0755
|
||||||
with_fileglob:
|
with_fileglob:
|
||||||
- "functions/*.function"
|
- "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
|
||||||
|
|||||||
Reference in New Issue
Block a user