mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-04-05 08:34:16 +02:00
21 lines
491 B
YAML
21 lines
491 B
YAML
---
|
|
# 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"
|