ansible-role-tomcat/tasks/not_pgsql_jdbc.yml

10 lines
264 B
YAML

---
- name: Do not load the postgresql jdbc driver on tomcat if not needed
file: dest={{ tomcat_catalina_home_dir }}/lib/{{ item }} state=absent
with_items:
- postgresql-jdbc4.jar
when: not tomcat_install_pg_jdbc
notify: tomcat restart
tags: tomcat