Solved path bugs

This commit is contained in:
Kevin Veen-Birkenbach 2025-04-02 19:33:23 +02:00
parent b1d8e21772
commit fa10fe558d
No known key found for this signature in database
GPG Key ID: 44D8F11FD62F878E
2 changed files with 7 additions and 6 deletions

View File

@ -37,9 +37,10 @@
- name: Ensure ~/.profile exists with common environment
lineinfile:
path: "{{ ansible_env.HOME }}/.profile"
path: "$HOME/.profile"
line: 'export SSH_AUTH_SOCK="$XDG_RUNTIME_DIR/ssh-agent.socket"'
insertafter: EOF
state: present
create: yes
mode: "0644"
mode: "0644"
become: false

View File

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