Skip to content

Commit 6fcfb30

Browse files
committed
oradb_manage_db: move echo for usage of ocenv from .bashrc to .bash_profile
The module oracle_redo has no support for RAC at the moment. Disable the execution of tasks when RAC is in use until the missing feature has been implemented.
1 parent 2be58e3 commit 6fcfb30

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

changelogs/fragments/ocenv.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
---
2+
breaking_changes:
3+
- "oradb_manage_db: move echo for usage of ocenv from .bashrc to .bash_profile ()"

roles/oradb_manage_db/tasks/ocenv.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,20 @@
1818
group: "{{ oracle_group }}"
1919
mode: '0644'
2020

21-
- name: manage_db | add ocenv to .bashrc # noqa: args[module]
21+
# OUI in RAC mode has issues with echo in '.bashrc'
22+
# Move the echo to .bash_profile
23+
# This task should be removed in a later Release of ansible-oracle
24+
- name: manage_db | Remove ocenv from .bashrc
2225
ansible.builtin.blockinfile:
2326
path: "{{ oracle_user_home }}/.bashrc"
2427
marker: "# {mark} ocenv ANSIBLE MANAGED BLOCK"
28+
backup: false
29+
state: absent
30+
31+
- name: manage_db | add ocenv to .bash_profile # noqa: args[module]
32+
ansible.builtin.blockinfile:
33+
path: "{{ oracle_user_home }}/.bash_profile"
34+
marker: "# {mark} ocenv ANSIBLE MANAGED BLOCK"
2535
block: "{{ ocenv_bashrc_init_section }}"
2636
create: true
2737
owner: "{{ oracle_user }}"

0 commit comments

Comments
 (0)