2015-05-28 11:32:57 +02:00
|
|
|
---
|
|
|
|
# Postgresql JDBC
|
|
|
|
- name: Install the jdbc package if needed
|
|
|
|
apt: pkg={{ item }} state=installed
|
|
|
|
with_items:
|
|
|
|
- libpostgresql-jdbc-java
|
|
|
|
when: tomcat_install_pg_jdbc
|
2016-03-02 16:44:43 +01:00
|
|
|
tags: [ 'tomcat', 'tomcat_jdbc' ]
|
2015-05-28 11:32:57 +02:00
|
|
|
|
|
|
|
- name: Configure tomcat to use the global postgresql jdbc driver
|
|
|
|
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
|
2016-03-02 16:44:43 +01:00
|
|
|
tags: [ 'tomcat', 'tomcat_jdbc' ]
|
2015-05-28 11:32:57 +02:00
|
|
|
|