Files
env-ansible/tasks/general/software/env-shared.yml
T
2026-10-02 11:24:23 -07:00

53 lines
1.4 KiB
YAML

---
# 20261002 - Hyperling
# Move internet requiring code out of users.yml.
# Shared Environment Setup #
- name: General | Account Management | Users | env-shared | Download / Update
ansible.builtin.git:
repo: https://git.hyperling.com/me/env-shared
version: "{{ branch }}"
dest: "{{ shared_rc_install_dir }}"
clone: true
force: true
update: true
#ignore_errors: true
- name: General | Account Management | Users | env-shared | Install | .rc_shared
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: true
when: user_root.home != "" and user_user.home != ""
- name: General | Account Management | Users | env-shared | Install | .vimrc
copy:
src: "{{ shared_rc_install_dir }}/vimrc.vim"
dest: "{{ item }}/.vimrc"
owner: root
group: "{{ root_group }}"
mode: "0755"
loop:
- "{{ user_root.home }}"
- "{{ user_user.home }}"
#ignore_errors: true
when: user_root.home != "" and user_user.home != ""
- name: General | Account Management | Users | env-shared | Permissions
ansible.builtin.file:
path: "{{ user_user.home }}/{{ item }}"
owner: "{{ user }}"
group: "{{ user }}"
mode: "0755"
loop:
- .rc_shared
- .vimrc
#ignore_errors: true