Added ssh agent for all shells

This commit is contained in:
2025-04-02 19:25:22 +02:00
parent cf823c0061
commit b1d8e21772
5 changed files with 89 additions and 19 deletions

View File

@@ -0,0 +1,20 @@
---
# roles/shell/tasks/main.yml
- name: Ensure ~/.bash_profile sources ~/.profile
lineinfile:
path: "{{ ansible_env.HOME }}/.bash_profile"
line: '[ -f ~/.profile ] && . ~/.profile'
insertafter: EOF
state: present
create: yes
mode: "0644"
- name: Ensure ~/.zprofile sources ~/.profile
lineinfile:
path: "{{ ansible_env.HOME }}/.zprofile"
line: '[ -f ~/.profile ] && . ~/.profile'
insertafter: EOF
state: present
create: yes
mode: "0644"