Initial commit uberspace ansible
This commit is contained in:
21
roles/postgres/tasks/profile.yml
Normal file
21
roles/postgres/tasks/profile.yml
Normal file
@ -0,0 +1,21 @@
|
||||
---
|
||||
- name: copy profile file to home dir
|
||||
template:
|
||||
src: postgres_profile.j2
|
||||
dest: ~/.postgres_profile
|
||||
mode: 0644
|
||||
- name: include postgres profile in bash_profile
|
||||
lineinfile:
|
||||
path: ~/.bash_profile
|
||||
line: source ~/.postgres_profile
|
||||
insertafter: EOF
|
||||
- name: copy environment var file to home dir
|
||||
template:
|
||||
src: postgres_env.j2
|
||||
dest: ~/.postgres_vars
|
||||
mode: 0644
|
||||
- name: include postgres vars in bashrc
|
||||
lineinfile:
|
||||
path: ~/.bashrc
|
||||
line: source ~/.postgres_vars
|
||||
insertafter: EOF
|
||||
Reference in New Issue
Block a user