Skip to content

Commit

Permalink
Fix odcbinst.ini entries
Browse files Browse the repository at this point in the history
  • Loading branch information
UNiXMIT committed Jul 11, 2024
1 parent c67ebd9 commit 44b8a5f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 13 deletions.
11 changes: 0 additions & 11 deletions rhel/db2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,17 +62,6 @@
. /home/{{ myUsername }}/sqllib/db2profile
become: yes

- name: Add DB2 driver in odbcinst.ini
ansible.builtin.blockinfile:
path: /etc/odbcinst.ini
block: |
[IBM DB2 ODBC DRIVER]
Description = DB2 Driver
Driver = /home/{{ myUsername }}/sqllib/lib64/libdb2o.so
fileusage=1
dontdlclose=1
become: yes

- name: Add DB2 DSN in odbc.ini
ansible.builtin.blockinfile:
path: /etc/odbc.ini
Expand Down
10 changes: 8 additions & 2 deletions rhel/software.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@
ansible.builtin.shell: systemctl enable --now podman.socket
when: ansible_facts['distribution_major_version'] | int >= 8

- name: Add PostgreSQL driver in odbcinst.ini
- name: Add PostgreSQL and DB2 driver in odbcinst.ini
ansible.builtin.blockinfile:
path: /etc/odbcinst.ini
block: |
Expand All @@ -132,4 +132,10 @@
[PostgreSQL Unicode]
Description=PostgreSQL ODBC driver (Unicode version)
Driver=psqlodbcw.so
Setup=libodbcpsqlS.so
Setup=libodbcpsqlS.so
[IBM DB2 ODBC DRIVER]
Description = DB2 Driver
Driver = /home/{{ myUsername }}/sqllib/lib64/libdb2o.so
fileusage=1
dontdlclose=1

0 comments on commit 44b8a5f

Please sign in to comment.