ansible-roles/tomcat/tasks/tomcat-admin.yml

12 lines
378 B
YAML

---
- name: Install the tomcat console management package
apt: pkg={{ item }} state={{ tomcat_pkg_state }}
with_items: 'tomcat{{ tomcat_version }}-admin'
tags: tomcat
- name: Install the tomcat users file
template: src=tomcat-users.xml.j2 dest={{ tomcat_conf_dir }}/tomcat-users.xml owner=root group={{ tomcat_user }} mode=0640
notify: tomcat restart
tags: tomcat