mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-04-07 17:54:48 +02:00
Solved path bugs
This commit is contained in:
parent
b1d8e21772
commit
fa10fe558d
@ -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
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user