20 lines
572 B
YAML
20 lines
572 B
YAML
---
|
|
# PostgreSQL JDBC
|
|
- name: pgsql_jdbc | Install the jdbc package if needed
|
|
ansible.builtin.apt:
|
|
pkg: libpostgresql-jdbc-java
|
|
state: present
|
|
when: tomcat_install_pg_jdbc
|
|
tags: ['tomcat', 'tomcat_jdbc']
|
|
|
|
- name: pgsql_jdbc | Configure tomcat to use the global postgresql jdbc driver
|
|
ansible.builtin.file:
|
|
src: '/usr/share/java/{{ item }}'
|
|
dest: '/usr/share/tomcat{{ tomcat_version }}/lib/{{ item }}'
|
|
state: link
|
|
with_items:
|
|
- postgresql-jdbc4.jar
|
|
when: tomcat_install_pg_jdbc
|
|
notify: Tomcat restart
|
|
tags: ['tomcat', 'tomcat_jdbc']
|