File tree Expand file tree Collapse file tree 3 files changed +9
-3
lines changed
Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ minor_changes :
3+ - " oradb_manage_db: customize ocenv initialization in bashrc"
Original file line number Diff line number Diff line change @@ -144,3 +144,7 @@ shell_aliases:
144144 - " lsnrservice='lsnrctl services $LSNRNAME'"
145145
146146deploy_ocenv : true # deploy ocenv scripts
147+ ocenv_bashrc_init : true
148+ ocenv_bashrc_init_section : |
149+ echo "execute ocenv to source Oracle Environment"
150+ alias ocenv='. "{{ dbenvdir }}/ocenv"'
Original file line number Diff line number Diff line change 2222 ansible.builtin.blockinfile :
2323 path : " {{ oracle_user_home }}/.bashrc"
2424 marker : " # {mark} ocenv ANSIBLE MANAGED BLOCK"
25- block : |
26- echo "execute ocenv to source Oracle Environment"
27- alias ocenv='. "{{ dbenvdir }}/ocenv"'
25+ block : " {{ ocenv_bashrc_init_section }}"
2826 create : true
2927 owner : " {{ oracle_user }}"
3028 group : " {{ oracle_group }}"
3129 mode : 0644
30+ state : " {{ 'present' if ocenv_bashrc_init else 'absent' }}"
You can’t perform that action at this time.
0 commit comments