mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-04-08 02:04:47 +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
|
- name: Ensure ~/.profile exists with common environment
|
||||||
lineinfile:
|
lineinfile:
|
||||||
path: "{{ ansible_env.HOME }}/.profile"
|
path: "$HOME/.profile"
|
||||||
line: 'export SSH_AUTH_SOCK="$XDG_RUNTIME_DIR/ssh-agent.socket"'
|
line: 'export SSH_AUTH_SOCK="$XDG_RUNTIME_DIR/ssh-agent.socket"'
|
||||||
insertafter: EOF
|
insertafter: EOF
|
||||||
state: present
|
state: present
|
||||||
create: yes
|
create: yes
|
||||||
mode: "0644"
|
mode: "0644"
|
||||||
|
become: false
|
@ -1,20 +1,20 @@
|
|||||||
---
|
---
|
||||||
# roles/shell/tasks/main.yml
|
|
||||||
|
|
||||||
- name: Ensure ~/.bash_profile sources ~/.profile
|
- name: Ensure ~/.bash_profile sources ~/.profile
|
||||||
lineinfile:
|
lineinfile:
|
||||||
path: "{{ ansible_env.HOME }}/.bash_profile"
|
path: "$HOME/.bash_profile"
|
||||||
line: '[ -f ~/.profile ] && . ~/.profile'
|
line: '[ -f ~/.profile ] && . ~/.profile'
|
||||||
insertafter: EOF
|
insertafter: EOF
|
||||||
state: present
|
state: present
|
||||||
create: yes
|
create: yes
|
||||||
mode: "0644"
|
mode: "0644"
|
||||||
|
become: false
|
||||||
|
|
||||||
- name: Ensure ~/.zprofile sources ~/.profile
|
- name: Ensure ~/.zprofile sources ~/.profile
|
||||||
lineinfile:
|
lineinfile:
|
||||||
path: "{{ ansible_env.HOME }}/.zprofile"
|
path: "$HOME/.zprofile"
|
||||||
line: '[ -f ~/.profile ] && . ~/.profile'
|
line: '[ -f ~/.profile ] && . ~/.profile'
|
||||||
insertafter: EOF
|
insertafter: EOF
|
||||||
state: present
|
state: present
|
||||||
create: yes
|
create: yes
|
||||||
mode: "0644"
|
mode: "0644"
|
||||||
|
become: false
|
||||||
|
Loading…
x
Reference in New Issue
Block a user