Finished postgres role
This commit is contained in:
@ -4,18 +4,22 @@
|
||||
src: postgres_profile.j2
|
||||
dest: ~/.postgres_profile
|
||||
mode: 0644
|
||||
register: postgres_profile
|
||||
- name: include postgres profile in bash_profile
|
||||
lineinfile:
|
||||
path: ~/.bash_profile
|
||||
line: source ~/.postgres_profile
|
||||
insertafter: EOF
|
||||
when: postgres_profile.changed
|
||||
- name: copy environment var file to home dir
|
||||
template:
|
||||
src: postgres_env.j2
|
||||
dest: ~/.postgres_vars
|
||||
mode: 0644
|
||||
register: postgres_env
|
||||
- name: include postgres vars in bashrc
|
||||
lineinfile:
|
||||
path: ~/.bashrc
|
||||
line: source ~/.postgres_vars
|
||||
insertafter: EOF
|
||||
when: postgres_env.changed
|
||||
|
||||
Reference in New Issue
Block a user